[dyad] Removed counter suffix option - wrote 1 file(s)
This commit is contained in:
@@ -44,7 +44,6 @@ export function ImageConverter() {
|
||||
const [useCounter, setUseCounter] = useState<boolean>(false);
|
||||
const [counterStart, setCounterStart] = useState<number>(1);
|
||||
const [counterDigits, setCounterDigits] = useState<number>(3);
|
||||
const [counterSuffix, setCounterSuffix] = useState<string>("");
|
||||
|
||||
const [isConverting, setIsConverting] = useState(false);
|
||||
const [isDraggingOver, setIsDraggingOver] = useState(false);
|
||||
@@ -139,7 +138,7 @@ export function ImageConverter() {
|
||||
|
||||
if (useCounter) {
|
||||
const counter = (index + counterStart).toString().padStart(counterDigits, '0');
|
||||
finalName += `${counter}${counterSuffix}`;
|
||||
finalName += `${counter}`;
|
||||
}
|
||||
|
||||
return finalName;
|
||||
@@ -276,8 +275,7 @@ export function ImageConverter() {
|
||||
<Label htmlFor="use-counter">Add sequential number</Label>
|
||||
</div>
|
||||
{useCounter && (
|
||||
<div className="space-y-4 pt-2">
|
||||
<div className="grid grid-cols-2 gap-4">
|
||||
<div className="grid grid-cols-2 gap-4 pt-2">
|
||||
<div className="space-y-2">
|
||||
<Label htmlFor="counter-start">Start number</Label>
|
||||
<Input
|
||||
@@ -299,16 +297,6 @@ export function ImageConverter() {
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div className="space-y-2">
|
||||
<Label htmlFor="counter-suffix">Counter Suffix</Label>
|
||||
<Input
|
||||
id="counter-suffix"
|
||||
placeholder="e.g., _final"
|
||||
value={counterSuffix}
|
||||
onChange={(e) => setCounterSuffix(e.target.value)}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</AccordionContent>
|
||||
|
||||
Reference in New Issue
Block a user