[dyad] Re-added 'Apply Settings' button - wrote 1 file(s)

This commit is contained in:
[dyad]
2026-01-18 11:35:58 +01:00
parent 18dd995fc4
commit 5dc01730c6

View File

@@ -20,7 +20,7 @@ import {
SelectValue, SelectValue,
} from "@/components/ui/select"; } from "@/components/ui/select";
import { ScrollArea } from "@/components/ui/scroll-area"; import { ScrollArea } from "@/components/ui/scroll-area";
import { Upload, Download, X, Trash2 } from "lucide-react"; import { Upload, Download, X, Trash2, Check } from "lucide-react";
import { toast } from "sonner"; import { toast } from "sonner";
import { cn } from "@/lib/utils"; import { cn } from "@/lib/utils";
import { Switch } from "@/components/ui/switch"; import { Switch } from "@/components/ui/switch";
@@ -235,6 +235,10 @@ export function ImageConverter() {
} }
}; };
const handleApplySettings = () => {
toast.info("Settings updated and will be used for all downloads.");
};
const hasImages = images.length > 0; const hasImages = images.length > 0;
return ( return (
@@ -355,6 +359,14 @@ export function ImageConverter() {
</AccordionContent> </AccordionContent>
</AccordionItem> </AccordionItem>
</Accordion> </Accordion>
<Button
onClick={handleApplySettings}
disabled={!hasImages}
className="w-full"
>
<Check className="mr-2 h-4 w-4" />
Apply Settings
</Button>
</div> </div>
<div className="lg:col-span-2 flex flex-col gap-8"> <div className="lg:col-span-2 flex flex-col gap-8">