diff options
author | dan <[email protected]> | 2023-08-30 14:42:29 -0400 |
---|---|---|
committer | dan <[email protected]> | 2023-08-30 14:42:29 -0400 |
commit | 7dfea27816de77b4e9fe665f0f203386a9c2b8cf (patch) | |
tree | ee823f2e0bd8df9fd8977281e1af6d53c08fe6a0 /src/pages/Surveys/SurveysList.js | |
parent | 7fdb76bca64e2e72768f6de7bfa3fea98d2d5bbb (diff) | |
download | draggable-form-demo-7dfea27816de77b4e9fe665f0f203386a9c2b8cf.tar.gz draggable-form-demo-7dfea27816de77b4e9fe665f0f203386a9c2b8cf.tar.bz2 draggable-form-demo-7dfea27816de77b4e9fe665f0f203386a9c2b8cf.zip |
feat: add surveys list component
Diffstat (limited to 'src/pages/Surveys/SurveysList.js')
-rw-r--r-- | src/pages/Surveys/SurveysList.js | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/src/pages/Surveys/SurveysList.js b/src/pages/Surveys/SurveysList.js new file mode 100644 index 0000000..c9c5b90 --- /dev/null +++ b/src/pages/Surveys/SurveysList.js @@ -0,0 +1,50 @@ +import React from "react"; +import Box from "@mui/material/Box"; +import { DataGrid } from "@mui/x-data-grid"; + +const columns = [ + { field: "id", headerName: "ID", width: 90 }, + { + field: "name", + headerName: "Name", + width: 150, + }, + { + field: "next_run_at", + headerName: "Next Run", + width: 150, + }, +]; + +const rows = [ + { id: 1, name: "survey", next_run_at: "Mon 28 Aug 16:35:36 EDT 2023" }, + { id: 2, name: "survey", next_run_at: "Mon 28 Aug 16:35:36 EDT 2023" }, + { id: 3, name: "survey", next_run_at: "Mon 28 Aug 16:35:36 EDT 2023" }, + { id: 4, name: "survey", next_run_at: "Mon 28 Aug 16:35:36 EDT 2023" }, + { id: 5, name: "survey", next_run_at: "Mon 28 Aug 16:35:36 EDT 2023" }, + { id: 6, name: "survey", next_run_at: "Mon 28 Aug 16:35:36 EDT 2023" }, + { id: 7, name: "survey", next_run_at: "Mon 28 Aug 16:35:36 EDT 2023" }, + { id: 8, name: "survey", next_run_at: "Mon 28 Aug 16:35:36 EDT 2023" }, + { id: 9, name: "survey", next_run_at: "Mon 28 Aug 16:35:36 EDT 2023" }, +]; + +export default function SurveysList() { + return ( + <Box sx={{ minHeight: "100%", width: "100%" }}> + <DataGrid + rows={rows} + columns={columns} + initialState={{ + pagination: { + paginationModel: { + pageSize: 25, + }, + }, + }} + pageSizeOptions={[25, 50, 100]} + checkboxSelection + disableRowSelectionOnClick + /> + </Box> + ); +} |