fix: eslint warnings (#252)

This commit is contained in:
kimatata
2025-07-20 10:59:57 +09:00
committed by GitHub
parent e6be84b67e
commit 9ae67fd303
118 changed files with 423 additions and 511 deletions

View File

@@ -19,7 +19,11 @@ export const ThemeSwitch: FC<ThemeSwitchProps> = ({ className, classNames }) =>
const isSSR = useIsSSR();
const onChange = () => {
theme === 'light' ? setTheme('dark') : setTheme('light');
if (theme === 'light') {
setTheme('dark');
} else {
setTheme('light');
}
};
const { Component, slots, isSelected, getBaseProps, getInputProps, getWrapperProps } = useSwitch({