From 6514ed55e3f608f468e103cacad547aed276b8bf Mon Sep 17 00:00:00 2001
From: eug-vs <eug-vs@keemail.me>
Date: Fri, 9 Oct 2020 03:26:42 +0300
Subject: feat: display version chip on ReviewCard

---
 src/containers/Home/ReviewForm.tsx | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

(limited to 'src/containers/Home/ReviewForm.tsx')

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();
-- 
cgit v1.2.3

