diff options
author | Eugene Sokolov <eug-vs@keemail.me> | 2020-10-09 03:35:31 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-09 03:35:31 +0300 |
commit | fcaddcd6ad8607d05279acdb87675de6180ac1cb (patch) | |
tree | 818dc66ce2e45b5f29728b1e6654935d616ad3d5 /src/components/ReviewCard/ReviewCard.tsx | |
parent | a5d0f3edcd5478c81262524cbfef8273a065df36 (diff) | |
parent | 5b81a690ed3c407aeb934b92fdad4a37c7e01a4b (diff) | |
download | which-ui-fcaddcd6ad8607d05279acdb87675de6180ac1cb.tar.gz |
Merge pull request #104 from which-ecosystem/feat/patch-notes
Display patch notes on home screen
Diffstat (limited to 'src/components/ReviewCard/ReviewCard.tsx')
-rw-r--r-- | src/components/ReviewCard/ReviewCard.tsx | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/components/ReviewCard/ReviewCard.tsx b/src/components/ReviewCard/ReviewCard.tsx index 2016a5e..ccf051c 100644 --- a/src/components/ReviewCard/ReviewCard.tsx +++ b/src/components/ReviewCard/ReviewCard.tsx @@ -4,7 +4,8 @@ import { Card, CardContent, Typography, - Divider + Divider, + Chip } from '@material-ui/core/'; import { Rating } from '@material-ui/lab'; import { Feedback } from 'which-types'; @@ -17,7 +18,13 @@ interface PropTypes { const useStyles = makeStyles(theme => ({ root: { - margin: theme.spacing(4, 0, 1, 0) + margin: theme.spacing(4, 0, 1, 0), + position: 'relative' + }, + versionChip: { + position: 'absolute', + right: theme.spacing(2), + top: theme.spacing(2) } })); @@ -30,6 +37,12 @@ const ReviewCard: React.FC<PropTypes> = ({ feedback }) => { user={feedback.author} info={<Rating value={feedback.score} readOnly size="small" />} /> + <Chip + size="small" + variant="outlined" + label={feedback.version} + className={classes.versionChip} + /> {feedback.contents && ( <> <Divider /> |