aboutsummaryrefslogtreecommitdiff
path: root/src/containers
diff options
context:
space:
mode:
Diffstat (limited to 'src/containers')
-rw-r--r--src/containers/Home/Home.tsx6
-rw-r--r--src/containers/PollCreation/PollCreation.tsx5
2 files changed, 5 insertions, 6 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 2e2bd06..b761c73 100644
--- a/src/containers/PollCreation/PollCreation.tsx
+++ b/src/containers/PollCreation/PollCreation.tsx
@@ -14,7 +14,6 @@ import { post } from '../../requests';
import { useFeed, useProfile } from '../../hooks/APIClient';
import { useAuth } from '../../hooks/useAuth';
-
const useStyles = makeStyles(theme => ({
images: {
height: theme.spacing(50),
@@ -25,11 +24,11 @@ const useStyles = makeStyles(theme => ({
height: 100
},
description: {
+ fontSize: 14,
padding: theme.spacing(1, 2)
}
}));
-
const PollCreation: React.FC = () => {
const [description, setDescription] = useState<string>('');
const classes = useStyles();
@@ -84,7 +83,7 @@ const PollCreation: React.FC = () => {
<Container maxWidth="sm" disableGutters>
<Card elevation={3}>
{user && <UserStrip user={user} />}
- <Typography>
+ <Typography component="span">
<InputBase
multiline
fullWidth