remove defautl empty string props

This commit is contained in:
Alex Holliday committed 2025-02-23 17:47:02 -08:00
1 parent 77ca3e1ecd
commit 946bfaf16c
2 files changed
+613 -4898

No files matched your search

+601 -4883
View File
File diff suppressed because it is too large. Load diff
+12 -15
View File
@@ -21,14 +21,14 @@ import { RowContainer } from "../StandardContainer";
*/
const SubHeader = ({
headerText='',
headerText,
headerLevel = 1,
subHeaderText = '',
subHeaderText,
subHeaderLevel = 1,
rightCatagoryTitle = '',
rightCatagoryTitle,
rightCatagoryTitleLevel = 2,
rightDescription='',
rightDescriptionLevel = 2
rightDescription,
rightDescriptionLevel = 2,
}) => {
const theme = useTheme();
@@ -37,9 +37,7 @@ const SubHeader = ({
direction="row"
justifyContent="space-between"
>
<Stack
direction={"column"}
>
<Stack direction={"column"}>
<Typography
component={`h${headerLevel}`}
variant={`h${headerLevel}`}
@@ -61,19 +59,18 @@ const SubHeader = ({
</Typography>
</Stack>
{rightCatagoryTitle &&
{rightCatagoryTitle && (
<RowContainer sx={{ width: "20%" }}>
<Stack>
<Typography variant={`body${rightCatagoryTitleLevel}`}>{rightCatagoryTitle}</Typography>
<Typography variant={`body${rightCatagoryTitleLevel}`}>
{rightCatagoryTitle}
</Typography>
<Typography variant={`h${rightDescriptionLevel}`}>
{rightDescription}
</Typography>
</Stack>
</RowContainer>
}
)}
</Stack>
);
};
@@ -86,7 +83,7 @@ SubHeader.propTypes = {
rightCatagoryTitle: PropTypes.string,
rightCatagoryTitleLevel: PropTypes.number,
rightDescription: PropTypes.string,
rightDescriptionLevel : PropTypes.number
rightDescriptionLevel: PropTypes.number,
};
export default SubHeader;