-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1850 from Owaiseimdad/FIX_1848_smallUIFixes
FIX-1848 UI design changes
- Loading branch information
Showing
5 changed files
with
53 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/Pages/StatusPage/Create/Components/Tabs/ConfigStack.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { Stack, Typography } from "@mui/material"; | ||
import ConfigBox from "../../../../../Components/ConfigBox"; | ||
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 ConfigStack = ({ title, description, children }) => { | ||
const theme = useTheme(); | ||
return ( | ||
<ConfigBox> | ||
<Stack gap={theme.spacing(6)}> | ||
<Typography component="h2">{title}</Typography> | ||
<Typography component="p">{description}</Typography> | ||
</Stack> | ||
{children} | ||
</ConfigBox> | ||
); | ||
}; | ||
|
||
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 ConfigStack; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters