From 577bc9447daa407453fc8db6a70b7e055091d9f2 Mon Sep 17 00:00:00 2001 From: Daniel Cojocea Date: Wed, 18 Sep 2024 21:22:22 -0400 Subject: [PATCH] Added fields --- .../Maintenance/CreateMaintenance/index.jsx | 135 +++++++++++++++--- .../Maintenance/CreateMaintenance/styled.jsx | 20 +++ 2 files changed, 134 insertions(+), 21 deletions(-) create mode 100644 Client/src/Pages/Maintenance/CreateMaintenance/styled.jsx diff --git a/Client/src/Pages/Maintenance/CreateMaintenance/index.jsx b/Client/src/Pages/Maintenance/CreateMaintenance/index.jsx index c4aa697f6..724643f59 100644 --- a/Client/src/Pages/Maintenance/CreateMaintenance/index.jsx +++ b/Client/src/Pages/Maintenance/CreateMaintenance/index.jsx @@ -5,6 +5,25 @@ import Select from "../../../Components/Inputs/Select"; import Field from "../../../Components/Inputs/Field"; import Breadcrumbs from "../../../Components/Breadcrumbs"; import "./index.css"; +import { ConfigBox } from "./styled"; + +const repeatConfig = [ + { _id: 0, name: "Don't repeat" }, + { _id: 1, name: "Repeat daily" }, + { _id: 2, name: "Repeat weekly" }, +]; + +const durationConfig = [ + { _id: 0, name: "seconds" }, + { _id: 1, name: "minutes" }, + { _id: 2, name: "hours" }, + { _id: 3, name: "days" }, +]; + +const periodConfig = [ + { _id: 0, name: "AM" }, + { _id: 1, name: "PM" }, +]; const CreateMaintenance = () => { const theme = useTheme(); @@ -24,30 +43,104 @@ const CreateMaintenance = () => { gap={theme.spacing(12)} mt={theme.spacing(6)} > - - - Create a{" "} + + + + Create a{" "} + + + maintenance{" "} + + + window + - + Your pings won't be sent during this time frame + + + + + General Settings + + - maintenance{" "} + + + + + + + Duration + + + +