feat(theme-components): use default exports
This commit is contained in:
parent
90f9edea95
commit
dcbcab3122
6 changed files with 13 additions and 10 deletions
|
@ -11,7 +11,7 @@ interface ThemeSwitcherProps {
|
|||
className?: string;
|
||||
}
|
||||
|
||||
export const ThemeSwitcher = ({ size, className }: ThemeSwitcherProps) => {
|
||||
const ThemeSwitcher = ({ size, className }: ThemeSwitcherProps) => {
|
||||
const [mounted, setMounted] = useState(false);
|
||||
|
||||
const { theme, setTheme } = useTheme();
|
||||
|
@ -70,3 +70,5 @@ export const ThemeSwitcher = ({ size, className }: ThemeSwitcherProps) => {
|
|||
/>
|
||||
);
|
||||
};
|
||||
|
||||
export default ThemeSwitcher;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue