-
Notifications
You must be signed in to change notification settings - Fork 16
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 #1220 from edenia/feat/add-stats-stress-test-dashb…
…oard Feat/add stats stress test dashboard
- Loading branch information
Showing
13 changed files
with
315 additions
and
388 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import React from 'react' | ||
import { makeStyles } from '@mui/styles' | ||
import PropTypes from 'prop-types' | ||
import Card from '@mui/material/Card' | ||
import CardContent from '@mui/material/CardContent' | ||
|
||
import styles from './styles' | ||
|
||
const useStyles = makeStyles(styles) | ||
|
||
const SimpleDataCard = ({ header, children }) => { | ||
const classes = useStyles() | ||
|
||
return ( | ||
<div className={header ? classes.cardHeader : classes.cardGrow} > | ||
<Card className={classes.cardShadow}> | ||
<CardContent className={classes.cards}>{children}</CardContent> | ||
</Card> | ||
</div> | ||
) | ||
} | ||
|
||
SimpleDataCard.propTypes = { | ||
header: PropTypes.bool, | ||
children: PropTypes.node, | ||
} | ||
|
||
SimpleDataCard.defaultProps = { | ||
header: false, | ||
} | ||
|
||
export default SimpleDataCard |
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,36 @@ | ||
export default (theme) => ({ | ||
cards: { | ||
textTransform: 'capitalize', | ||
minHeight: '90px', | ||
'& .MuiTypography-h6': { | ||
display: 'flex', | ||
justifyContent: 'center', | ||
textAlign: 'center', | ||
marginTop: theme.spacing(2), | ||
}, | ||
}, | ||
cardShadow: { | ||
boxShadow: '0px 1px 3px 1px rgba(0, 0, 0, 0.15) !important', | ||
}, | ||
cardHeader: { | ||
flexGrow: '1', | ||
flexBasis: 'calc(100%/5)', | ||
[theme.breakpoints.down('md')]: { | ||
marginBottom: '10px', | ||
}, | ||
'& .MuiPaper-root': { | ||
height: '100%', | ||
}, | ||
}, | ||
cardGrow: { | ||
flexGrow: '1', | ||
flexBasis: 'calc(100%/5)', | ||
[theme.breakpoints.down('md')]: { | ||
flexBasis: 'calc(100%/3)', | ||
marginBottom: '10px', | ||
}, | ||
'& .MuiPaper-root': { | ||
height: '100%', | ||
}, | ||
}, | ||
}) |
Oops, something went wrong.