diff options
author | eug-vs <eug-vs@keemail.me> | 2020-10-09 03:26:42 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-10-09 03:26:42 +0300 |
commit | 6514ed55e3f608f468e103cacad547aed276b8bf (patch) | |
tree | 96b21497f893e52c7a3576fbd0c16fa97d74ee6b /src/containers/Home/ReviewForm.tsx | |
parent | fbb0a7fd921c4f2675147f0f8bc08a221b736a53 (diff) | |
download | which-ui-6514ed55e3f608f468e103cacad547aed276b8bf.tar.gz |
feat: display version chip on ReviewCard
Diffstat (limited to 'src/containers/Home/ReviewForm.tsx')
-rw-r--r-- | src/containers/Home/ReviewForm.tsx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/containers/Home/ReviewForm.tsx b/src/containers/Home/ReviewForm.tsx index b626ce2..32f3b19 100644 --- a/src/containers/Home/ReviewForm.tsx +++ b/src/containers/Home/ReviewForm.tsx @@ -7,7 +7,10 @@ import { useSnackbar } from 'notistack'; import { post } from '../../requests'; -const version = 'v1.0.0'; + +interface PropTypes { + version: string; +} const useStyles = makeStyles(theme => ({ root: { @@ -19,7 +22,7 @@ const useStyles = makeStyles(theme => ({ } })); -const ReviewForm: React.FC = () => { +const ReviewForm: React.FC<PropTypes> = ({ version }) => { const [contents, setContents] = useState<string>(''); const [score, setScore] = useState<number>(0); const classes = useStyles(); |