File tree Expand file tree Collapse file tree
packages/web/src/common/components/Button Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { PropsWithClassName } from '@/common/utils/types' ;
22import { useSetSettings } from '@/common/api/useSetSettings' ;
33import { useSettings } from '@/common/hooks/useSettings' ;
4- import { cn } from '@/common/utils/css' ;
54import Button from './Button' ;
65import FAIcon from '@/common/components/Icon/FAIcon' ;
76
@@ -20,7 +19,7 @@ const ThemeToggle = ({ className }: PropsWithClassName) => {
2019 < Button
2120 variant = "text"
2221 size = "icon"
23- className = { cn ( 'text-primary' , className ) }
22+ className = { className }
2423 title = "Dark Mode"
2524 onClick = { ( ) => setSettings ( { theme : 'dark' } ) }
2625 testId = "button-theme-dark"
@@ -31,7 +30,7 @@ const ThemeToggle = ({ className }: PropsWithClassName) => {
3130 < Button
3231 variant = "text"
3332 size = "icon"
34- className = { cn ( 'text-primary' , className ) }
33+ className = { className }
3534 title = "Light Mode"
3635 onClick = { ( ) => setSettings ( { theme : 'light' } ) }
3736 testId = "button-theme-light"
You can’t perform that action at this time.
0 commit comments