(`${import.meta.env.VITE_API_AUTH_URL}/auth/roles/`, [])
+ const [open, setOpen] = useState(false)
const columns: GridColDef[] = [
{ field: 'id', headerName: 'ID', type: "number", width: 70 },
- { field: 'name', headerName: 'Название', width: 90 },
- { field: 'description', headerName: 'Описание', width: 90 },
+ { field: 'name', headerName: 'Название', width: 90, editable: true },
+ { field: 'description', headerName: 'Описание', width: 90, editable: true },
];
+ if (isError) return Произошла ошибка при получении данных.
+ if (isLoading) return
+
return (
-
- )
+
- return (
-
- {cards.length > 0 && cards.map((card, index) => )}
- setShowModal({ showModal: true })}>+
-
-
+
+