add crud manage menus

This commit is contained in:
Wikzyy
2025-03-06 09:15:17 +07:00
parent f84bf7dde1
commit eb338915da
4 changed files with 6 additions and 37 deletions

View File

@ -2,9 +2,9 @@ import { apiConfig } from '@/config/api.config';
import { useManageMenusContext } from '../hooks/useManageMenusContext';
import { Alert, useDataGrid } from '@/components';
import { useCallApi } from '@/hooks';
import React, { ChangeEvent, useCallback, useState } from 'react';
import { ChangeEvent, useCallback, useState } from 'react';
import { toast } from 'sonner';
import { Dialog, DialogContent, DialogFooter, DialogHeader } from '@/components/ui/dialog';
import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle } from '@/components/ui/dialog';
import { EnforceSwitch } from '@/components/switch';
import { Button } from '@/components/ui/button';
@ -39,6 +39,8 @@ const DeleteDialog = () => {
<Dialog open={showDeleteDialog} onOpenChange={(open) => handleDeleteDialog(open, null)}>
<DialogContent className="container-fixed max-w-md flex flex-col p-5 overflow-hidden [&>button]:hidden">
<DialogHeader className="p-0 border-0 block">
<DialogTitle></DialogTitle>
<DialogDescription></DialogDescription>
<Alert variant="warning">
<h3 className="text-lg">Are you sure?</h3>
<span className="text-sm">you will delete this data!</span>