diff --git a/apps/frontend/src/lib/record/UpdateRecordMenu.svelte b/apps/frontend/src/lib/record/UpdateRecordMenu.svelte
index 0a9d6813c..5f31ef9ac 100644
--- a/apps/frontend/src/lib/record/UpdateRecordMenu.svelte
+++ b/apps/frontend/src/lib/record/UpdateRecordMenu.svelte
@@ -5,8 +5,9 @@
import { canCreateRecord, canDeleteRecord, currentRecordId, getTable } from '$lib/store/table'
import { trpc } from '$lib/trpc/client'
import type { Record } from '@undb/core'
- import { Dropdown, DropdownDivider, DropdownItem, Modal, Spinner } from 'flowbite-svelte'
import { Button } from '$lib/components/ui/button'
+ import * as AlertDialog from '$lib/components/ui/alert-dialog'
+ import * as DropdownMenu from '$lib/components/ui/dropdown-menu'
let confirmDeleteOpen = false
@@ -28,73 +29,80 @@
{#if $canCreateRecord || $canDeleteRecord}
-
-
- {#if $canCreateRecord}
- {
- if (record) {
- $duplicateRecord.mutate({ tableId: $table.id.value, id: record.id.value })
- }
- }}
- class="inline-flex items-center gap-2"
- >
-
- {$t('Duplicate Record')}
-
- {/if}
+
+
+
+
+
+ {#if $canCreateRecord}
+ {
+ if (record) {
+ $duplicateRecord.mutate({ tableId: $table.id.value, id: record.id.value })
+ }
+ }}
+ class="flex items-center gap-2"
+ >
+
+ {$t('Duplicate Record')}
+
+ {/if}
- {#if $canDeleteRecord}
-
- (confirmDeleteOpen = true)} class="inline-flex items-center gap-2 text-red-400">
-
- {$t('Delete Record')}
-
- {/if}
-
+ {#if $canDeleteRecord}
+
+ (confirmDeleteOpen = true)} class="flex items-center gap-2 text-red-400">
+
+ {$t('Delete Record')}
+
+ {/if}
+
+
{/if}
-
-
-
-
- {$t('Confirm Delete Record')}
-
-
-
-
-
+
+
+
+
+
+ {$t('Confirm Delete Record')}
+
+
+
+
+
+
+
+