mirror of
https://github.com/ItzCrazyKns/Perplexica.git
synced 2025-06-07 18:38:42 +00:00
feat(components): use arrow function
This commit is contained in:
@ -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')}
|
||||
/>
|
||||
);
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user