diff --git a/components/apikey/ApikeysManagement.tsx b/components/apikey/ApikeysManagement.tsx index 20a3508..c9263f8 100644 --- a/components/apikey/ApikeysManagement.tsx +++ b/components/apikey/ApikeysManagement.tsx @@ -2,6 +2,10 @@ import { useAuth } from '@/context/AuthContext'; import { fetchUserApiKeys, generateAndStoreNewApiKey, revokeOrUnrevokeApiKey } from '@/lib/db/content'; import React, { useState, useEffect, useCallback, useMemo, memo } from 'react'; +import { Button } from '../ui/button'; +import { ScrollArea } from '../ui/scroll-area'; +import { cn } from '@/lib/utils'; +import { Label } from '../ui/label'; /** * Utility to copy text to clipboard @@ -61,7 +65,6 @@ const NewKeyDialog = ({ isOpen, onClose, userId, onKeyGenerated }) => { if (plainTextKey) { setPlainTextKey(plainTextKey); - onKeyGenerated(); } else { setError('Failed to generate key.'); } @@ -90,8 +93,8 @@ const NewKeyDialog = ({ isOpen, onClose, userId, onKeyGenerated }) => { {plainTextKey ? (
- ⚠️ SUCCESS: Copy the key below. It will not be shown again. +
+ SUCCESS: Copy the key below. It will not be shown again.
{plainTextKey}
@@ -103,19 +106,22 @@ const NewKeyDialog = ({ isOpen, onClose, userId, onKeyGenerated }) => {