diff --git a/apps/readest-app/src/app/auth/page.tsx b/apps/readest-app/src/app/auth/page.tsx index 90ac992e..efc2fe74 100644 --- a/apps/readest-app/src/app/auth/page.tsx +++ b/apps/readest-app/src/app/auth/page.tsx @@ -16,6 +16,7 @@ import { useEnv } from '@/context/EnvContext'; import { useThemeStore } from '@/store/themeStore'; import { useSettingsStore } from '@/store/settingsStore'; import { useTranslation } from '@/hooks/useTranslation'; +import { useTrafficLightStore } from '@/store/trafficLightStore'; import { isTauriAppPlatform } from '@/services/environment'; import { onOpenUrl } from '@tauri-apps/plugin-deep-link'; import { start, cancel, onUrl, onInvalidUrl } from '@fabianlars/tauri-plugin-oauth'; @@ -63,6 +64,7 @@ export default function AuthPage() { const { login } = useAuth(); const { envConfig, appService } = useEnv(); const { isDarkMode } = useThemeStore(); + const { isTrafficLightVisible } = useTrafficLightStore(); const { settings, setSettings, saveSettings } = useSettingsStore(); const [port, setPort] = useState(null); const isOAuthServerRunning = useRef(false); @@ -308,7 +310,8 @@ export default function AuthPage() {
@@ -319,9 +322,9 @@ export default function AuthPage() { {appService?.hasWindowBar && ( )} diff --git a/apps/readest-app/src/app/user/page.tsx b/apps/readest-app/src/app/user/page.tsx index 8c21dd7b..90ff9ad5 100644 --- a/apps/readest-app/src/app/user/page.tsx +++ b/apps/readest-app/src/app/user/page.tsx @@ -11,6 +11,7 @@ import { useAuth } from '@/context/AuthContext'; import { useTheme } from '@/hooks/useTheme'; import { useTranslation } from '@/hooks/useTranslation'; import { useSettingsStore } from '@/store/settingsStore'; +import { useTrafficLightStore } from '@/store/trafficLightStore'; import { QuotaType, UserPlan } from '@/types/user'; import { getStoragePlanData, getUserPlan } from '@/utils/access'; import { navigateToLibrary } from '@/utils/nav'; @@ -25,6 +26,7 @@ const ProfilePage = () => { const router = useRouter(); const { envConfig, appService } = useEnv(); const { token, user, logout } = useAuth(); + const { isTrafficLightVisible } = useTrafficLightStore(); const { settings, setSettings, saveSettings } = useSettingsStore(); const [userPlan, setUserPlan] = useState('free'); const [quotas, setQuotas] = React.useState([]); @@ -164,7 +166,8 @@ const ProfilePage = () => {
@@ -175,9 +178,9 @@ const ProfilePage = () => { {appService?.hasWindowBar && ( )}