parent
7808ca9128
commit
6d018f6b5d
3 changed files with 34 additions and 0 deletions
@ -0,0 +1,15 @@ |
|||||||
|
import { Typography } from '@material-ui/core'; |
||||||
|
import { withStyles } from '@material-ui/core/styles'; |
||||||
|
import { TEXT } from '../../lib/consts/DEFAULT_THEME'; |
||||||
|
|
||||||
|
const WhiteTypography = withStyles({ |
||||||
|
root: { |
||||||
|
color: TEXT, |
||||||
|
}, |
||||||
|
})(Typography); |
||||||
|
|
||||||
|
const BodyText = ({ text }: { text: string }): JSX.Element => { |
||||||
|
return <WhiteTypography variant="subtitle1">{text}</WhiteTypography>; |
||||||
|
}; |
||||||
|
|
||||||
|
export default BodyText; |
@ -0,0 +1,15 @@ |
|||||||
|
import { Typography } from '@material-ui/core'; |
||||||
|
import { withStyles } from '@material-ui/core/styles'; |
||||||
|
import { TEXT } from '../../lib/consts/DEFAULT_THEME'; |
||||||
|
|
||||||
|
const WhiteTypography = withStyles({ |
||||||
|
root: { |
||||||
|
color: TEXT, |
||||||
|
}, |
||||||
|
})(Typography); |
||||||
|
|
||||||
|
const HeaderText = ({ text }: { text: string }): JSX.Element => { |
||||||
|
return <WhiteTypography variant="h4">{text}</WhiteTypography>; |
||||||
|
}; |
||||||
|
|
||||||
|
export default HeaderText; |
@ -0,0 +1,4 @@ |
|||||||
|
import HeaderText from './HeaderText'; |
||||||
|
import BodyText from './BodyText'; |
||||||
|
|
||||||
|
export { HeaderText, BodyText }; |
Loading…
Reference in new issue