From ad049a20fa2d92d9d0cee0af25be799eadf02b46 Mon Sep 17 00:00:00 2001 From: eug-vs 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 = ({ feedback }) => { + const classes = useStyles(); + + return ( + + } + /> + + + + {feedback.contents} + + + + ); +}; + +export default ReviewCard; -- cgit v1.2.3