@@ -30,6 +30,7 @@ import { AppNavbar } from "@/components/app-navbar";
3030import { cn } from "@/lib/utils" ;
3131import { ScrollArea } from "@/components/ui/scroll-area" ;
3232import { Input } from "@/components/ui/input" ;
33+ import { Switch } from "@/components/ui/switch" ;
3334
3435export const Route = createFileRoute ( "/(authed)/config" ) ( {
3536 component : ConfigComponent ,
@@ -210,16 +211,23 @@ function ConfigComponent() {
210211 < button
211212 key = { product . id }
212213 className = { cn (
213- "w-full px-6 py-4 flex items-center justify-between hover:bg-accent/5 transition-colors" ,
214- isEnabled && "bg-accent/10 "
214+ "w-full px-6 py-4 flex items-center justify-between hover:bg-secondary/50 transition-colors" ,
215+ isEnabled && "bg-secondary "
215216 ) }
216217 onClick = { ( ) => toggleProduct ( service . id , product . id ) }
217218 >
218219 < div className = "flex items-center gap-3" >
219220 { getIconForProduct ( service . id , product . id ) }
220221 < span className = "font-medium" > { product . name } </ span >
221222 </ div >
222- { isEnabled && < Check className = "h-4 w-4 text-accent" /> }
223+ < div className = "flex items-center gap-2" >
224+ < Switch
225+ checked = { isEnabled }
226+ onCheckedChange = { ( ) => toggleProduct ( service . id , product . id ) }
227+ onClick = { ( e ) => e . stopPropagation ( ) }
228+ className = "data-[state=checked]:bg-primary"
229+ />
230+ </ div >
223231 </ button >
224232 ) ;
225233 } ) }
0 commit comments