From 2a65284a385915818ca5f3e3b7354554e19af9cb Mon Sep 17 00:00:00 2001 From: eug-vs Date: Mon, 15 Jun 2020 15:52:40 +0300 Subject: style: fix eslint errors --- src/components/PollCard/PercentageBar.tsx | 4 ++-- src/components/PollCard/PollCard.tsx | 19 ++++++++----------- 2 files changed, 10 insertions(+), 13 deletions(-) (limited to 'src/components') diff --git a/src/components/PollCard/PercentageBar.tsx b/src/components/PollCard/PercentageBar.tsx index bf88815..6a50a9e 100644 --- a/src/components/PollCard/PercentageBar.tsx +++ b/src/components/PollCard/PercentageBar.tsx @@ -6,7 +6,7 @@ interface PropTypes { which: 'left' | 'right'; } -const useStyles = makeStyles(theme => ({ +const useStyles = makeStyles({ root: { position: 'absolute', color: 'white', @@ -20,7 +20,7 @@ const useStyles = makeStyles(theme => ({ right: { right: 30 } -})); +}); const PercentageBar: React.FC = ({ value, which }) => { const classes = useStyles(); diff --git a/src/components/PollCard/PollCard.tsx b/src/components/PollCard/PollCard.tsx index 7f587f3..23dc342 100644 --- a/src/components/PollCard/PollCard.tsx +++ b/src/components/PollCard/PollCard.tsx @@ -5,8 +5,7 @@ import { CardActionArea, CardMedia, Avatar, - CardHeader, -Link + CardHeader } from '@material-ui/core/'; import { Poll } from '../../types'; import PercentageBar from './PercentageBar'; @@ -28,7 +27,7 @@ const useStyles = makeStyles(theme => ({ }, imagesBlock: { display: 'flex' - }, + } })); @@ -47,14 +46,12 @@ const PollCard: React.FC = ({ poll, navigate }) => { - - + )} title={author.name} /> -- cgit v1.2.3