diff options
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/Highlight/Highlight.tsx | 39 | ||||
-rw-r--r-- | src/components/UserStatus/UserStatus.tsx | 29 |
2 files changed, 68 insertions, 0 deletions
diff --git a/src/components/Highlight/Highlight.tsx b/src/components/Highlight/Highlight.tsx new file mode 100644 index 0000000..71764e2 --- /dev/null +++ b/src/components/Highlight/Highlight.tsx @@ -0,0 +1,39 @@ +import React, {useState} from 'react'; +import {makeStyles} from '@material-ui/core/styles'; + +interface PropTypes { + text: string; + value: any; +} + +const useStyles = makeStyles({ + root: { + position: 'relative' + }, + menuButton: { + width: 200, + height: 50, + textAlign: 'center' + }, + menuNumber: { + fontWeight: 800, + color: 'black' + }, + menuText: { + color: 'darkgray' + }, +}); + + +const Highlight: React.FC<PropTypes> = ({text, value}) => { + const classes = useStyles(); + + return ( + <div className={classes.menuButton}> + <div className={classes.menuNumber}>{value}</div> + <div className={classes.menuText}>{text}</div> + </div> + ); +}; + +export default Highlight; diff --git a/src/components/UserStatus/UserStatus.tsx b/src/components/UserStatus/UserStatus.tsx new file mode 100644 index 0000000..338b5d1 --- /dev/null +++ b/src/components/UserStatus/UserStatus.tsx @@ -0,0 +1,29 @@ +import React, {useState} from 'react'; +import {makeStyles} from '@material-ui/core/styles'; + +const useStyles = makeStyles({ + root: { + position: 'relative' + }, + status: { + textAlign: 'center', + color: 'darkgray' + }, +}); + + +const UserStatus: React.FC = () => { + const classes = useStyles(); + + const changeStatus = () => { + + }; + + return ( + <div className={classes.status} onClick={changeStatus}> + I am not alcoholic + </div> + ); +}; + +export default UserStatus; |