diff options
author | ilyayudovin <ilyayudovin123@gmail.com> | 2020-06-26 23:54:55 +0300 |
---|---|---|
committer | ilyayudovin <ilyayudovin123@gmail.com> | 2020-06-26 23:54:55 +0300 |
commit | 28a0027e212cfe2b3f5d397464dbbfe14a5a186c (patch) | |
tree | 5f47ede10f2d53cb3aa30c5b04177e92cba6a511 /src/components/Highlight | |
parent | a5fbcc34f2529a2429124572915597c0fed45ae7 (diff) | |
download | which-ui-28a0027e212cfe2b3f5d397464dbbfe14a5a186c.tar.gz |
take all info from user to highlight
Diffstat (limited to 'src/components/Highlight')
-rw-r--r-- | src/components/Highlight/Highlight.tsx | 39 |
1 files changed, 39 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; |