diff options
-rw-r--r-- | .eslintrc.json | 2 | ||||
-rw-r--r-- | src/PollCard/PollCard.tsx | 20 |
2 files changed, 15 insertions, 7 deletions
diff --git a/.eslintrc.json b/.eslintrc.json index 746c3b9..0789840 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -12,7 +12,7 @@ "jsx-quotes": ["error", "prefer-double"], "quotes": ["error", "single"], "no-multiple-empty-lines": [2, { "max": 2, "maxEOF": 1 } ], - "max-len": ["error", { "code": 140 }], + "max-len": ["error", { "code": 120 }], "arrow-parens": [2, "as-needed"], "comma-dangle": ["error", "never"], "arrow-body-style": 0, diff --git a/src/PollCard/PollCard.tsx b/src/PollCard/PollCard.tsx index a157411..353c33c 100644 --- a/src/PollCard/PollCard.tsx +++ b/src/PollCard/PollCard.tsx @@ -1,11 +1,17 @@ import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; -import Card from '@material-ui/core/Card'; -import CardActionArea from '@material-ui/core/CardActionArea'; -import CardMedia from '@material-ui/core/CardMedia'; -import Avatar from '@material-ui/core/Avatar'; -import CardHeader from '@material-ui/core/CardHeader'; - +import { + Card, + CardActionArea, + CardMedia, + Avatar, + CardHeader +} from '@material-ui/core/'; +// import Card from '@material-ui/core/Card'; +// import CardActionArea from '@material-ui/core/CardActionArea'; +// import CardMedia from '@material-ui/core/CardMedia'; +// import Avatar from '@material-ui/core/Avatar'; +// import CardHeader from '@material-ui/core/CardHeader'; const useStyles = makeStyles({ root: { @@ -54,6 +60,7 @@ const PollCard: React.FC = () => { <CardActionArea> <CardMedia className={classes.images} + // eslint-disable-next-line max-len image="https://images.pexels.com/photos/556666/pexels-photo-556666.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500" /> <div className={classes.percentageLeft}>25%</div> @@ -61,6 +68,7 @@ const PollCard: React.FC = () => { <CardActionArea> <CardMedia className={classes.images} + // eslint-disable-next-line max-len image="https://cdn.psychologytoday.com/sites/default/files/field_blog_entry_images/2019-06/pexels-photo-556667.jpeg" /> <div className={classes.percentageRight}>75%</div> |