diff --git a/src/states/Dashboard/pages/Licenses/columns.jsx b/src/states/Dashboard/pages/Licenses/columns.jsx new file mode 100644 index 0000000..fad3344 --- /dev/null +++ b/src/states/Dashboard/pages/Licenses/columns.jsx @@ -0,0 +1,17 @@ +import {IconButton, Stack} from "@mui/material"; +import {Delete, Edit} from "@mui/icons-material"; + +export default [ + {field: 'key', headerName: 'Schlüssel', width: 250}, + {field: 'groups', headerName: 'Gruppen', width: 200}, + {field: 'permissions', headerName: 'Berechtigungen', width: 200}, + {field: 'currentUses', headerName: 'Aktuelle Nutzungen', width: 180}, + {field: 'maxUses', headerName: 'Maximale Nutzungen', width: 180, renderCell: (params) => + params.value === -1 ? "Unbegrenzt" : params.value}, + {field: 'expirationDate', headerName: 'Ablaufdatum', width: 200, renderCell: (params) => + new Date(params.value).getTime() !== 0 ? "Nie" : new Date(params.value).toLocaleString()}, + {field: 'actions', headerName: 'Aktionen', width: 80, renderCell: () => + + + , sortable: false, filterable: false, align: 'center'} +]; \ No newline at end of file