mirror of
https://github.com/R0m1k3/Priceflow.git
synced 2026-10-18 20:58:59 +02:00
feat: Implement dashboard page for item management and add/edit item modal.
This commit is contained in:
1 parent
18d5f3dbf1
commit
a9cb4e4ac5
2 files changed
+68
-7
No files matched your search
@@ -178,14 +178,16 @@ export default function Dashboard() {
|
||||
<ItemModal
|
||||
open={showAddModal}
|
||||
onClose={() => setShowAddModal(false)}
|
||||
onSaved={refreshItems}
|
||||
onSaved={() => { refreshItems(); loadCategories(); }}
|
||||
categories={categories}
|
||||
/>
|
||||
|
||||
<ItemModal
|
||||
open={!!editingItem}
|
||||
item={editingItem}
|
||||
onClose={() => setEditingItem(null)}
|
||||
onSaved={refreshItems}
|
||||
onSaved={() => { refreshItems(); loadCategories(); }}
|
||||
categories={categories}
|
||||
/>
|
||||
|
||||
<DeleteConfirmationModal
|
||||
|
||||
Reference in new issue
Block a user