From 3629836b2529e31a7ae784b0257981284026698c Mon Sep 17 00:00:00 2001 From: kuekhaoyang Date: Sat, 29 Nov 2025 18:23:58 +0800 Subject: [PATCH] feat: display Google Client ID configuration error UI in SyncSettings --- components/settings/SyncSettings.tsx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/components/settings/SyncSettings.tsx b/components/settings/SyncSettings.tsx index be56200..a8f5635 100644 --- a/components/settings/SyncSettings.tsx +++ b/components/settings/SyncSettings.tsx @@ -20,6 +20,24 @@ export function SyncSettings() { } = useSync(); if (!isInitialized) { + if (error) { + return ( +
+

+ + 云端同步 (Google Drive) +

+
+

配置缺失

+

请在 .env.local 文件中添加 Google Client ID:

+ + NEXT_PUBLIC_GOOGLE_CLIENT_ID=你的客户端ID + +
+
+ ); + } + return (