Update Switcher.tsx to fix build error

This commit is contained in:
Jiangyuan Li 2024-06-02 23:23:17 -07:00 committed by GitHub
parent 476303f52b
commit 723f526972
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7,7 +7,7 @@ import { Select } from '../SettingsDialog';
type Theme = 'dark' | 'light' | 'system';
const ThemeSwitcher = ({ className }: { className?: string }) => {
const ThemeSwitcher = ({ className, size }: { className?: string; size?: number }) => {
const [mounted, setMounted] = useState(false);
const { theme, setTheme } = useTheme();