From 9df0f44132e19be9fc975543924aef81b04e9e0b Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Sat, 23 Aug 2025 18:05:59 +0300 Subject: fix(web): Fix hydration errors in add api key page --- apps/web/components/settings/AddApiKey.tsx | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) (limited to 'apps/web/components') diff --git a/apps/web/components/settings/AddApiKey.tsx b/apps/web/components/settings/AddApiKey.tsx index b41701ba..326da229 100644 --- a/apps/web/components/settings/AddApiKey.tsx +++ b/apps/web/components/settings/AddApiKey.tsx @@ -10,7 +10,6 @@ import { Dialog, DialogClose, DialogContent, - DialogDescription, DialogFooter, DialogHeader, DialogTitle, @@ -38,7 +37,7 @@ function ApiKeySuccess({ apiKey }: { apiKey: string }) { const { t } = useTranslation(); return (
-
+
{t("settings.api_keys.key_success_please_copy")}
@@ -117,11 +116,7 @@ function AddApiKeyForm({ onSuccess }: { onSuccess: (key: string) => void }) { ); }} /> - + {t("actions.create")} @@ -148,14 +143,12 @@ export default function AddApiKey() { ? t("settings.api_keys.key_success") : t("settings.api_keys.new_api_key")} - - {key ? ( - - ) : ( - - )} - + {key ? ( + + ) : ( + + )}