From 1dfd24d5053a09df475f1592e2a9d6fa8c600b75 Mon Sep 17 00:00:00 2001 From: Mark Chen <31685881+yuting1214@users.noreply.github.com> Date: Mon, 10 Jun 2024 16:37:03 -0400 Subject: [PATCH] Update Switcher.tsx --- ui/components/theme/Switcher.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ui/components/theme/Switcher.tsx b/ui/components/theme/Switcher.tsx index 22e2ecc..6237c68 100644 --- a/ui/components/theme/Switcher.tsx +++ b/ui/components/theme/Switcher.tsx @@ -7,6 +7,12 @@ import { Select } from '../SettingsDialog'; type Theme = 'dark' | 'light' | 'system'; +interface ThemeSwitcherProps { + className?: string; + size?: number; // Added size prop +} + + const ThemeSwitcher = ({ className }: { className?: string }) => { const [mounted, setMounted] = useState(false); @@ -55,6 +61,7 @@ const ThemeSwitcher = ({ className }: { className?: string }) => { { value: 'light', label: 'Light' }, { value: 'dark', label: 'Dark' } ]} + size = {size} // Added size prop /> ); };