new build
fix api alert
This commit is contained in:
@@ -46,8 +46,10 @@ function App() {
|
||||
if (message) {
|
||||
if (message.includes(InvalidApiKeyError) || message.includes(RequireApiKeError)) {
|
||||
setApiKeyInvalid(true)
|
||||
return
|
||||
}
|
||||
}
|
||||
setApiKeyInvalid(false)
|
||||
}, [message, setApiKeyInvalid])
|
||||
|
||||
return (
|
||||
|
@@ -4,8 +4,7 @@ import {
|
||||
AlertDialogContent,
|
||||
AlertDialogDescription,
|
||||
AlertDialogHeader,
|
||||
AlertDialogTitle,
|
||||
AlertDialogTrigger
|
||||
AlertDialogTitle
|
||||
} from '@/components/ui/AlertDialog'
|
||||
import Button from '@/components/ui/Button'
|
||||
import Input from '@/components/ui/Input'
|
||||
@@ -51,7 +50,6 @@ const ApiKeyAlert = () => {
|
||||
|
||||
return (
|
||||
<AlertDialog open={opened} onOpenChange={setOpened}>
|
||||
<AlertDialogTrigger>Open</AlertDialogTrigger>
|
||||
<AlertDialogContent>
|
||||
<AlertDialogHeader>
|
||||
<AlertDialogTitle>API Key is required</AlertDialogTitle>
|
||||
|
Reference in New Issue
Block a user