[dyad] Re-added 'Apply Settings' button - wrote 1 file(s)
This commit is contained in:
@@ -20,7 +20,7 @@ import {
|
||||
SelectValue,
|
||||
} from "@/components/ui/select";
|
||||
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 { cn } from "@/lib/utils";
|
||||
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;
|
||||
|
||||
return (
|
||||
@@ -355,6 +359,14 @@ export function ImageConverter() {
|
||||
</AccordionContent>
|
||||
</AccordionItem>
|
||||
</Accordion>
|
||||
<Button
|
||||
onClick={handleApplySettings}
|
||||
disabled={!hasImages}
|
||||
className="w-full"
|
||||
>
|
||||
<Check className="mr-2 h-4 w-4" />
|
||||
Apply Settings
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
<div className="lg:col-span-2 flex flex-col gap-8">
|
||||
|
||||
Reference in New Issue
Block a user