diff options
author | ilyayudovin <ilyayudovin123@gmail.com> | 2020-10-09 23:48:17 +0300 |
---|---|---|
committer | ilyayudovin <ilyayudovin123@gmail.com> | 2020-10-09 23:48:17 +0300 |
commit | 76e235f22f15b0590d2c6594f9c298d94ba59307 (patch) | |
tree | 8affbbac3fa19cd43cc0f0730dcee80733fc2bfa | |
parent | 578188c82b3aba624be31b67042ecbc68f8036c1 (diff) | |
download | which-ui-76e235f22f15b0590d2c6594f9c298d94ba59307.tar.gz |
Fix console warnings
-rw-r--r-- | src/containers/Home/Home.tsx | 6 | ||||
-rw-r--r-- | src/containers/PollCreation/PollCreation.tsx | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/containers/Home/Home.tsx b/src/containers/Home/Home.tsx index 4fd2833..e97d640 100644 --- a/src/containers/Home/Home.tsx +++ b/src/containers/Home/Home.tsx @@ -71,7 +71,7 @@ const Home: React.FC = () => { const Reviews = ( <div className={classes.reviews}> - {feedbacks?.map((feedback: Feedback) => <ReviewCard feedback={feedback} />)} + {feedbacks?.map((feedback: Feedback, index) => <ReviewCard key={index} feedback={feedback} />)} </div> ); @@ -130,7 +130,7 @@ const Home: React.FC = () => { <Grid item> <Typography variant="h4"> Which one to choose? </Typography> <Divider /> - <Typography> + <Typography component="span"> <p> Have you ever found yourself stuck between two options, not being able to choose any? This is exactly the problem we are going to solve! @@ -156,7 +156,7 @@ const Home: React.FC = () => { <Grid item> <Typography variant="h4">{`What's new in ${release?.version}?`}</Typography> <Divider /> - <Typography className={classes.patchNotes}> + <Typography component="span" className={classes.patchNotes}> <p>{release?.description}</p> </Typography> <Button diff --git a/src/containers/PollCreation/PollCreation.tsx b/src/containers/PollCreation/PollCreation.tsx index 7f4edc1..b761c73 100644 --- a/src/containers/PollCreation/PollCreation.tsx +++ b/src/containers/PollCreation/PollCreation.tsx @@ -83,7 +83,7 @@ const PollCreation: React.FC = () => { <Container maxWidth="sm" disableGutters> <Card elevation={3}> {user && <UserStrip user={user} />} - <Typography component='span'> + <Typography component="span"> <InputBase multiline fullWidth |