FIX-1848 addressed the comments in order to modify the theme implementation.

This commit is contained in:
Owaise Imdad committed 2025-03-03 09:16:25 +05:30
1 parent 641aeff08c
commit 8f9c388953
4 files changed
+12 -12

No files matched your search

@@ -4,7 +4,7 @@ import PropTypes from "prop-types";
import { useTheme } from "@emotion/react";
// This can be used to add any extra/additional section/stacks on top of existing sections on the tab
const SectionStack = ({ title, description, children }) => {
const ConfigStack = ({ title, description, children }) => {
const theme = useTheme();
return (
<ConfigBox>
@@ -17,10 +17,10 @@ const SectionStack = ({ title, description, children }) => {
);
};
SectionStack.propTypes = {
ConfigStack.propTypes = {
title: PropTypes.string.isRequired, // Title must be a string and is required
description: PropTypes.string.isRequired, // Description must be a string and is required
children: PropTypes.node.isRequired,
};
export default SectionStack;
export default ConfigStack;
@@ -7,7 +7,7 @@ import Checkbox from "../../../../../Components/Inputs/Checkbox";
// Utils
import { useState } from "react";
import { useTheme } from "@emotion/react";
import SectionStack from "./SectionStack";
import ConfigStack from "./ConfigStack";
const Content = ({
tabValue,
form,
@@ -34,7 +34,7 @@ const Content = ({
return (
<TabPanel value={tabValue}>
<Stack gap={theme.spacing(10)}>
<SectionStack
<ConfigStack
title="Status page servers"
description="You can add any number of servers that you monitor to your status page. You can also reorder them for the best viewing experience."
>
@@ -68,8 +68,8 @@ const Content = ({
setSelectedMonitors={handleMonitorsChange}
/>
</Stack>
</SectionStack>
<SectionStack
</ConfigStack>
<ConfigStack
title="Features"
description="Show more details on the status page"
>
@@ -89,7 +89,7 @@ const Content = ({
onChange={handleFormChange}
/>
</Stack>
</SectionStack>
</ConfigStack>
</Stack>
</TabPanel>
);