mirror of
https://github.com/johndoe6345789/postgres.git
synced 2026-04-24 13:55:00 +00:00
refactor: Remove unused state variables from dashboard
- Remove unused dialog state variables - Improve code maintainability - Address code review feedback Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
@@ -82,15 +82,7 @@ export default function AdminDashboard() {
|
||||
const [loading, setLoading] = useState(false);
|
||||
const [error, setError] = useState('');
|
||||
const [successMessage, setSuccessMessage] = useState('');
|
||||
|
||||
// Dialog states
|
||||
const [_openCreateDialog, _setOpenCreateDialog] = useState(false);
|
||||
const [_openEditDialog, _setOpenEditDialog] = useState(false);
|
||||
const [_openDeleteDialog, _setOpenDeleteDialog] = useState(false);
|
||||
const [_editingRecord, _setEditingRecord] = useState<any>(null);
|
||||
const [_deletingRecord, _setDeletingRecord] = useState<any>(null);
|
||||
const [_formData, _setFormData] = useState<any>({});
|
||||
|
||||
|
||||
// Table Manager states
|
||||
const [openCreateTableDialog, setOpenCreateTableDialog] = useState(false);
|
||||
const [openDropTableDialog, setOpenDropTableDialog] = useState(false);
|
||||
|
||||
Reference in New Issue
Block a user