diff --git a/client/src/pages/admin/dashboard/index.tsx b/client/src/pages/admin/dashboard/index.tsx index defcd6a..20bb1ad 100644 --- a/client/src/pages/admin/dashboard/index.tsx +++ b/client/src/pages/admin/dashboard/index.tsx @@ -56,16 +56,6 @@ const Dashboard = () => { if (productLoading || postLoading || orderLoading) return else if ((!productLoading && !products) || (!postLoading && !posts) || (!orderLoading && !orders)) return - const handleFormOpen = (item, data) => { - if (item === 'products') { - setProductForm(data) - setIsAddOrEditProductForm(data.title === '' ? 'add' : 'edit') - } else { - setPostForm(data) - setIsAddOrEditPostForm(data.title === '' ? 'add' : 'edit') - } - } - const handleFormUpdate = async (item: string, todo: string) => { if (todo === 'add') { try {