aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/components')
-rw-r--r--src/components/PollCard/PercentageBar.tsx4
-rw-r--r--src/components/PollCard/PollCard.tsx19
2 files changed, 10 insertions, 13 deletions
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<PropTypes> = ({ 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<PropTypes> = ({ poll, navigate }) => {
<Card className={classes.root}>
<CardHeader
avatar={(
- <Link href="#">
- <Avatar
- aria-label="avatar"
- src={author.avatarUrl}
- alt={author.name[0].toUpperCase()}
- onClick={handleNavigate}
- />
- </Link>
+ <Avatar
+ aria-label="avatar"
+ src={author.avatarUrl}
+ alt={author.name[0].toUpperCase()}
+ onClick={handleNavigate}
+ />
)}
title={author.name}
/>