- Merge feedback works from status page 1 and status page 2 branches

This commit is contained in:
Shemy Gan committed 2024-12-13 11:29:50 -05:00
1 parent fdca92e543
commit 406fa6ed9f
4 files changed
+16 -20

No files matched your search

@@ -31,7 +31,6 @@ const GeneralSettingsPanel = () => {
url: "",
timezone: "America/Toronto",
color: "#4169E1",
theme: "light",
//which fields matching below?
publish: false,
logo: null,
@@ -68,7 +67,6 @@ const GeneralSettingsPanel = () => {
const handleSubmit = () => {
//validate rest of the form
delete localData.logo;
delete localData.publish;
if (hasValidationErrors(localData, publicPageGeneralSettingsValidation, setErrors)) {
return;
}
@@ -162,7 +160,6 @@ const GeneralSettingsPanel = () => {
id="published-to-public"
label={`Published and visible to the public`}
isChecked={localData.publish}
value={"localData.publish"}
onChange={handleChange}
onBlur={handleBlur}
/>
@@ -226,6 +223,7 @@ const GeneralSettingsPanel = () => {
src={localData.logo?.src ?? logo?.src}
loading={progress.isLoading && progress.value !== 100}
onChange={handleLogo}
isRound={false}
/>
{progress.isLoading || progress.value !== 0 || errors["logo"] ? (
<ProgressUpload
@@ -247,17 +245,6 @@ const GeneralSettingsPanel = () => {
onChange={handleChange}
onBlur={handleBlur}
/>
<Select
id="theme"
label="Theme"
value={localData.theme}
onChange={handleChange}
onBlur={handleBlur}
items={[
{ _id: "light", name: "Light" },
{ _id: "dark", name: "Dark" },
]}
/>
</Stack>
</ConfigBox>
<Stack