From ad049a20fa2d92d9d0cee0af25be799eadf02b46 Mon Sep 17 00:00:00 2001
From: eug-vs <eug-vs@keemail.me>
Date: Sun, 5 Jul 2020 11:14:15 +0300
Subject: feat: add reviews under logo

---
 src/components/ReviewCard/ReviewCard.tsx | 43 ++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)
 create mode 100644 src/components/ReviewCard/ReviewCard.tsx

(limited to 'src/components/ReviewCard/ReviewCard.tsx')

diff --git a/src/components/ReviewCard/ReviewCard.tsx b/src/components/ReviewCard/ReviewCard.tsx
new file mode 100644
index 0000000..9c3dd20
--- /dev/null
+++ b/src/components/ReviewCard/ReviewCard.tsx
@@ -0,0 +1,43 @@
+import React from 'react';
+import { makeStyles } from '@material-ui/core/styles';
+import {
+  Card,
+  CardContent,
+  Typography,
+  Divider
+} from '@material-ui/core/';
+import { Rating } from '@material-ui/lab'
+import { Feedback } from 'which-types';
+
+import UserStrip from '../UserStrip/UserStrip';
+
+interface PropTypes {
+  feedback: Feedback;
+}
+
+const useStyles = makeStyles(theme => ({
+  root: {
+    margin: theme.spacing(4, 0, 1, 0)
+  }
+}));
+
+const ReviewCard: React.FC<PropTypes> = ({ feedback }) => {
+  const classes = useStyles();
+
+  return (
+    <Card className={classes.root} elevation={2}>
+      <UserStrip
+        user={feedback.author}
+        info={<Rating value={feedback.score} readOnly size="small" />}
+      />
+      <Divider />
+      <CardContent>
+        <Typography>
+          {feedback.contents}
+        </Typography>
+      </CardContent>
+    </Card>
+  );
+};
+
+export default ReviewCard;
-- 
cgit v1.2.3


From 202f2ab4209a836e51a57081e5f78e255973c6f1 Mon Sep 17 00:00:00 2001
From: eug-vs <eug-vs@keemail.me>
Date: Sun, 5 Jul 2020 12:22:38 +0300
Subject: style: fix eslint errors

---
 src/components/ReviewCard/ReviewCard.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/components/ReviewCard/ReviewCard.tsx')

diff --git a/src/components/ReviewCard/ReviewCard.tsx b/src/components/ReviewCard/ReviewCard.tsx
index 9c3dd20..97581fc 100644
--- a/src/components/ReviewCard/ReviewCard.tsx
+++ b/src/components/ReviewCard/ReviewCard.tsx
@@ -6,7 +6,7 @@ import {
   Typography,
   Divider
 } from '@material-ui/core/';
-import { Rating } from '@material-ui/lab'
+import { Rating } from '@material-ui/lab';
 import { Feedback } from 'which-types';
 
 import UserStrip from '../UserStrip/UserStrip';
-- 
cgit v1.2.3

