Auto Close on pop ups after add button click

This commit is contained in:
headlessdev 2025-04-12 20:20:17 +02:00
parent a0c74b6a4e
commit d10b88ac78
2 changed files with 3 additions and 3 deletions

View File

@ -228,9 +228,9 @@ export default function Dashboard() {
</AlertDialogHeader>
<AlertDialogFooter>
<AlertDialogCancel>Cancel</AlertDialogCancel>
<Button onClick={add} disabled={!name || !publicURL || !serverId}>
<AlertDialogAction onClick={add} disabled={!name || !publicURL || !serverId}>
Add
</Button>
</AlertDialogAction>
</AlertDialogFooter>
</AlertDialogContent>
</AlertDialog>

View File

@ -265,7 +265,7 @@ export default function Dashboard() {
</AlertDialogHeader>
<AlertDialogFooter>
<AlertDialogCancel>Cancel</AlertDialogCancel>
<Button onClick={add}>Add</Button>
<AlertDialogAction onClick={add}>Add</AlertDialogAction>
</AlertDialogFooter>
</AlertDialogContent>
</AlertDialog>