diff --git a/Client/src/Components/TabPanels/Status/GeneralSettingsPanel.jsx b/Client/src/Components/TabPanels/Status/GeneralSettingsPanel.jsx
index a14fba7ee..e510237cf 100644
--- a/Client/src/Components/TabPanels/Status/GeneralSettingsPanel.jsx
+++ b/Client/src/Components/TabPanels/Status/GeneralSettingsPanel.jsx
@@ -1,29 +1,46 @@
import { useState, useRef } from "react";
import { Box, Stack, Typography } from "@mui/material";
-import { ConfigBox } from "../../../Pages/Monitors/styled";
+import { ConfigBox } from "../../../Pages/Settings/styled";
import Checkbox from "../../Inputs/Checkbox";
import { useTheme } from "@emotion/react";
import { useDispatch, useSelector } from "react-redux";
import TabPanel from "@mui/lab/TabPanel";
+import Field from "../../Inputs/Field";
+import ImageField from "../../Inputs/Image";
+import { setMode, setTimezone } from "../../../Features/UI/uiSlice";
+import timezones from "../../../Utils/timezones.json";
+import Select from "../../Inputs/Select"
const GeneralSettingsPanel = () => {
const theme = useTheme();
const dispatch = useDispatch();
-
- //redux state
- const { user, authToken, isLoading } = useSelector((state) => state.auth);
-
+ const [error, setError] = useState("");
// Local state for form data, errors, and file handling
- const [localData, setLocalData] = useState({
- });
+ const [localData, setLocalData] = useState({});
const [errors, setErrors] = useState({});
const [file, setFile] = useState();
+ const { timezone } = useSelector((state) => state.ui);
+ const { mode } = useSelector((state) => state.ui);
+
+ const handleChange = (event, appendedId) => {
+ event.preventDefault();
+ const { value, id } = event.target;
+ let name = appendedId ?? idMap[id] ?? id;
+ setLocalData((prev) => ({
+ ...prev,
+ [name]: value,
+ }));
+ }
+
const handleSubmit = () => {};
- const handleChange = () => {};
-
const handleBlur = () => {};
+
+ const handlePicture = (event) => {
+ const pic = event.target.files[0];
+ };
+
return (
{
},
}}
>
-
-
-
+
+
+
+
+ Access
+
+ If your status page is ready, you can mark it as published.
+
+
+
- Access
-
- If your status page is ready, you can mark it as published.
-
+
-
- handleChange(e)}
- onBlur={handleBlur}
- />
-
-
-
+
+
+
+
+
+ Basic Information
+
+ Define company name and the subdomain that your status page points to.
+
+
+
+
+
+
+
+
+
+
+
+
+ Appearance
+
+ Define the default look and feel of your public status page.
+
+
+
+
+
+
+
+
);
};
diff --git a/Client/src/Pages/Status/CreateStatus/index.jsx b/Client/src/Pages/Status/CreateStatus/index.jsx
index 84512833d..cf3733da9 100644
--- a/Client/src/Pages/Status/CreateStatus/index.jsx
+++ b/Client/src/Pages/Status/CreateStatus/index.jsx
@@ -1,10 +1,12 @@
import PropTypes from "prop-types";
import { useNavigate } from "react-router";
-import { useSelector } from "react-redux";
+
import { Box, Tab, useTheme } from "@mui/material";
import TabContext from "@mui/lab/TabContext";
import TabList from "@mui/lab/TabList";
import GeneralSettingsPanel from "../../../Components/TabPanels/Status/GeneralSettingsPanel";
+import ImageField from "../../../Components/Inputs/Image";
+import Checkbox from "../../../Components/Inputs/Checkbox";
/**
* CreateStatus page renders a page with tabs for general settings and contents.
@@ -19,10 +21,14 @@ const CreateStatus = ({ open = "general settings" }) => {
const handleTabChange = (event, newTab) => {
navigate(`/status/${newTab}`);
};
- const { user } = useSelector((state) => state.auth);
-
- const requiredRoles = ["superadmin", "admin"];
let tabList = ["General Settings", "Contents"];
+ const handlePicture = (event) => {}
+
+ const handleSubmit = () => {};
+
+ const handleChange = () => {};
+
+ const handleBlur = () => {};
return (