diff --git a/client/src/Pages/StatusPage/Create/index.tsx b/client/src/Pages/StatusPage/Create/index.tsx index 015f26077..fd09e7f0f 100644 --- a/client/src/Pages/StatusPage/Create/index.tsx +++ b/client/src/Pages/StatusPage/Create/index.tsx @@ -28,6 +28,7 @@ import type { StatusPageResponse } from "@/Types/StatusPage"; import timezones from "@/Utils/timezones.json"; import { useNavigate, useParams } from "react-router-dom"; import axios from "axios"; +import { MuiColorInput } from "mui-color-input"; interface TimezoneOption { _id: string; @@ -130,7 +131,7 @@ const CreateStatusPage = () => { headers: { "Content-Type": "multipart/form-data" }, }); } else { - result = await put(`/status-page/${url}`, fd, { + result = await put(`/status-page/${statusPageData?.statusPage.id}`, fd, { headers: { "Content-Type": "multipart/form-data" }, }); } @@ -358,23 +359,37 @@ const CreateStatusPage = () => { title={t("pages.statusPages.form.appearance.title")} subtitle={t("pages.statusPages.form.appearance.description")} rightContent={ - + + + ( + { + if (file) { + field.onChange({ + data: file.src, + contentType: file.file.type, + }); + } else { + field.onChange(null); + } + }} + /> + )} + /> + ( - { - if (file) { - field.onChange({ - data: file.src, - contentType: file.file.type, - }); - } else { - field.onChange(null); - } - }} + )} /> diff --git a/client/src/locales/en.json b/client/src/locales/en.json index dbf9f056d..d98d4fbdd 100644 --- a/client/src/locales/en.json +++ b/client/src/locales/en.json @@ -943,7 +943,15 @@ }, "appearance": { "title": "Appearance", - "description": "Define the default look and feel of your public status page." + "description": "Define the default look and feel of your public status page.", + "option": { + "logo": { + "label": "Logo" + }, + "color": { + "label": "Brand color" + } + } }, "features": { "title": "Features",