From 7671f4ff7ac5b106c3faa6b59a01f154cb34be99 Mon Sep 17 00:00:00 2001 From: Mohamed Bassem Date: Sun, 14 Sep 2025 16:31:08 +0000 Subject: feat: Regen api keys --- apps/web/components/settings/AddApiKey.tsx | 25 +++++-------------------- 1 file changed, 5 insertions(+), 20 deletions(-) (limited to 'apps/web/components/settings/AddApiKey.tsx') diff --git a/apps/web/components/settings/AddApiKey.tsx b/apps/web/components/settings/AddApiKey.tsx index 326da229..c8baa626 100644 --- a/apps/web/components/settings/AddApiKey.tsx +++ b/apps/web/components/settings/AddApiKey.tsx @@ -5,7 +5,6 @@ import { useState } from "react"; import { useRouter } from "next/navigation"; import { ActionButton } from "@/components/ui/action-button"; import { Button } from "@/components/ui/button"; -import CopyBtn from "@/components/ui/copy-button"; import { Dialog, DialogClose, @@ -33,24 +32,7 @@ import { PlusCircle } from "lucide-react"; import { useForm } from "react-hook-form"; import { z } from "zod"; -function ApiKeySuccess({ apiKey }: { apiKey: string }) { - const { t } = useTranslation(); - return ( -
-
- {t("settings.api_keys.key_success_please_copy")} -
-
- - { - return apiKey; - }} - /> -
-
- ); -} +import ApiKeySuccess from "./ApiKeySuccess"; function AddApiKeyForm({ onSuccess }: { onSuccess: (key: string) => void }) { const { t } = useTranslation(); @@ -145,7 +127,10 @@ export default function AddApiKey() { {key ? ( - + ) : ( )} -- cgit v1.2.3-70-g09d2