feat(components): use arrow function
This commit is contained in:
parent
9e7e1d76a2
commit
90f9edea95
4 changed files with 11 additions and 11 deletions
|
|
@ -11,7 +11,7 @@ interface ThemeSwitcherProps {
|
|||
className?: string;
|
||||
}
|
||||
|
||||
export function ThemeSwitcher({ size, className }: ThemeSwitcherProps) {
|
||||
export const ThemeSwitcher = ({ size, className }: ThemeSwitcherProps) => {
|
||||
const [mounted, setMounted] = useState(false);
|
||||
|
||||
const { theme, setTheme } = useTheme();
|
||||
|
|
@ -69,4 +69,4 @@ export function ThemeSwitcher({ size, className }: ThemeSwitcherProps) {
|
|||
onClick={() => handleThemeSwitch('system')}
|
||||
/>
|
||||
);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue