diff --git a/striker-ui/components/Text/BodyText.tsx b/striker-ui/components/Text/BodyText.tsx index 19dcf5d8..0be31cba 100644 --- a/striker-ui/components/Text/BodyText.tsx +++ b/striker-ui/components/Text/BodyText.tsx @@ -1,15 +1,36 @@ import { Typography } from '@material-ui/core'; -import { withStyles } from '@material-ui/core/styles'; -import { TEXT } from '../../lib/consts/DEFAULT_THEME'; +import { makeStyles } from '@material-ui/core/styles'; +import { TEXT, UNSELECTED } from '../../lib/consts/DEFAULT_THEME'; -const WhiteTypography = withStyles({ - root: { +interface TextProps { + text: string; + selected?: boolean; +} + +const useStyles = makeStyles(() => ({ + selected: { color: TEXT, }, -})(Typography); + unselected: { + color: UNSELECTED, + }, +})); + +const BodyText = ({ text, selected }: TextProps): JSX.Element => { + const classes = useStyles(); + + return ( + + {text} + + ); +}; -const BodyText = ({ text }: { text: string }): JSX.Element => { - return {text}; +BodyText.defaultProps = { + selected: true, }; export default BodyText; diff --git a/striker-ui/lib/consts/DEFAULT_THEME.ts b/striker-ui/lib/consts/DEFAULT_THEME.ts index dc91b1fe..5129c887 100644 --- a/striker-ui/lib/consts/DEFAULT_THEME.ts +++ b/striker-ui/lib/consts/DEFAULT_THEME.ts @@ -9,3 +9,4 @@ export const PURPLE_OFF = '#7353BA'; export const BLUE = '#4785FF'; export const GREY = '#E5E5E5'; export const HOVER = '#444'; +export const UNSELECTED = '#888';