From 589a5bad4ced8805d79ed3fd8a70e1ef5668a513 Mon Sep 17 00:00:00 2001 From: Supra4E8C Date: Fri, 26 Dec 2025 18:54:16 +0800 Subject: [PATCH] fix(oauth): use resolvedTheme for provider icons --- src/pages/OAuthPage.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/pages/OAuthPage.tsx b/src/pages/OAuthPage.tsx index ce1d3d2..2b4135d 100644 --- a/src/pages/OAuthPage.tsx +++ b/src/pages/OAuthPage.tsx @@ -54,7 +54,7 @@ const getIcon = (icon: string | { light: string; dark: string }, theme: 'light' export function OAuthPage() { const { t } = useTranslation(); const { showNotification } = useNotificationStore(); - const { theme } = useThemeStore(); + const resolvedTheme = useThemeStore((state) => state.resolvedTheme); const [states, setStates] = useState>({} as Record); const [iflowCookie, setIflowCookie] = useState({ cookie: '', loading: false }); const timers = useRef>({}); @@ -229,7 +229,11 @@ export function OAuthPage() { - + {t(provider.titleKey)} }