FIX-1848 minor theme fixes.

This commit is contained in:
Owaise Imdad committed 2025-03-01 22:43:35 +05:30
1 parent b6726fba54
commit d123bed875
1 file changed
+13 -9
@@ -1,17 +1,21 @@
import { Stack, Typography } from "@mui/material"; import { Stack, Typography } from "@mui/material";
import ConfigBox from "../../../../../Components/ConfigBox"; import ConfigBox from "../../../../../Components/ConfigBox";
import PropTypes from "prop-types"; 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 // 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 SectionStack = ({ title, description, children }) => {
<ConfigBox> const theme = useTheme();
<Stack gap={2}> return (
<Typography component="h2">{title}</Typography> <ConfigBox>
<Typography component="p">{description}</Typography> <Stack gap={theme.spacing(6)}>
</Stack> <Typography component="h2">{title}</Typography>
{children} <Typography component="p">{description}</Typography>
</ConfigBox> </Stack>
); {children}
</ConfigBox>
);
};
SectionStack.propTypes = { SectionStack.propTypes = {
title: PropTypes.string.isRequired, // Title must be a string and is required title: PropTypes.string.isRequired, // Title must be a string and is required