@@ -65,34 +65,34 @@ export function ThemeToggle({ className }: ThemeToggleProps) {
6565 return (
6666 < div
6767 className = { cn (
68- 'text-foreground bg-background flex w-full flex-row justify-end gap-2 divide-x overflow-hidden rounded border' ,
68+ 'text-foreground bg-background flex w-full flex-row justify-end divide-x overflow-hidden rounded border' ,
6969 className
7070 ) }
7171 >
7272 < span className = "sr-only" > Color scheme toggle</ span >
7373 < button
7474 type = "button"
7575 onClick = { ( ) => handleThemeChange ( 'dark' ) }
76- className = { cn ( ' cursor-pointer p-1' , theme !== 'dark' && 'opacity-25' ) }
76+ className = " cursor-pointer p-1"
7777 >
7878 < span className = "sr-only" > Enable dark color scheme</ span >
79- < MoonIcon size = { 16 } weight = "bold" />
79+ < MoonIcon size = { 16 } weight = "bold" className = { cn ( theme !== 'dark' && 'opacity-25' ) } />
8080 </ button >
8181 < button
8282 type = "button"
8383 onClick = { ( ) => handleThemeChange ( 'light' ) }
84- className = { cn ( ' cursor-pointer p-1' , theme !== 'light' && 'opacity-25' ) }
84+ className = " cursor-pointer p-1"
8585 >
8686 < span className = "sr-only" > Enable light color scheme</ span >
87- < SunIcon size = { 16 } weight = "bold" />
87+ < SunIcon size = { 16 } weight = "bold" className = { cn ( theme !== 'light' && 'opacity-25' ) } />
8888 </ button >
8989 < button
9090 type = "button"
9191 onClick = { ( ) => handleThemeChange ( 'system' ) }
92- className = { cn ( ' cursor-pointer p-1' , theme !== 'system' && 'opacity-25' ) }
92+ className = " cursor-pointer p-1"
9393 >
9494 < span className = "sr-only" > Enable system color scheme</ span >
95- < MonitorIcon size = { 16 } weight = "bold" />
95+ < MonitorIcon size = { 16 } weight = "bold" className = { cn ( theme !== 'system' && 'opacity-25' ) } />
9696 </ button >
9797 </ div >
9898 ) ;
0 commit comments