aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/components/AttachLink/AttachLink.tsx9
-rw-r--r--src/components/FileUpload/FileUpload.tsx7
-rw-r--r--src/containers/PollCreation/PollCreation.tsx2
-rw-r--r--src/containers/PollCreation/PollCreationImage.tsx2
-rw-r--r--src/containers/Profile/ProfileInfo.tsx2
5 files changed, 12 insertions, 10 deletions
diff --git a/src/components/AttachLink/AttachLink.tsx b/src/components/AttachLink/AttachLink.tsx
index eb7aebd..e73f5c1 100644
--- a/src/components/AttachLink/AttachLink.tsx
+++ b/src/components/AttachLink/AttachLink.tsx
@@ -1,5 +1,5 @@
import React, { useState } from 'react';
-import { Button, } from '@material-ui/core';
+import Button from '@material-ui/core/Button';
import LinkIcon from '@material-ui/icons/Link';
import Modal from './Modal';
@@ -30,9 +30,10 @@ const AttachLink: React.FC<PropTypes> = ({ callback, children }) => {
return (
<>
<Modal callback={callback} isOpen={isOpen} setIsOpen={setIsOpen} />
- {React.isValidElement(child)
- ? React.cloneElement(child, { onClick: handleOpen })
- : defaultButton
+ {
+ React.isValidElement(child)
+ ? React.cloneElement(child, { onClick: handleOpen })
+ : defaultButton
}
</>
);
diff --git a/src/components/FileUpload/FileUpload.tsx b/src/components/FileUpload/FileUpload.tsx
index dca70b1..67d280d 100644
--- a/src/components/FileUpload/FileUpload.tsx
+++ b/src/components/FileUpload/FileUpload.tsx
@@ -35,9 +35,10 @@ const FileUpload: React.FC<PropTypes> = ({ callback, children }) => {
return (
<>
<HiddenFileInput accept=".jpg, .jpeg, .png, .gif" multiple={false} />
- {React.isValidElement(child)
- ? React.cloneElement(child, { onClick })
- : defaultButton
+ {
+ React.isValidElement(child)
+ ? React.cloneElement(child, { onClick })
+ : defaultButton
}
</>
);
diff --git a/src/containers/PollCreation/PollCreation.tsx b/src/containers/PollCreation/PollCreation.tsx
index 34fc7c3..64ab7fd 100644
--- a/src/containers/PollCreation/PollCreation.tsx
+++ b/src/containers/PollCreation/PollCreation.tsx
@@ -62,7 +62,7 @@ const PollCreation: React.FC = () => {
right: { url: rightUrl }
};
- post('/polls/', { contents }).then(response => {
+ post('/polls/', { contents }).then(() => {
updateFeed();
enqueueSnackbar('Your poll has been successfully created!', {
variant: 'success'
diff --git a/src/containers/PollCreation/PollCreationImage.tsx b/src/containers/PollCreation/PollCreationImage.tsx
index d669d91..1200b11 100644
--- a/src/containers/PollCreation/PollCreationImage.tsx
+++ b/src/containers/PollCreation/PollCreationImage.tsx
@@ -3,7 +3,7 @@ import { makeStyles } from '@material-ui/core/styles';
import {
CardActionArea,
CardMedia,
- Typography,
+ Typography
} from '@material-ui/core';
import ClearIcon from '@material-ui/icons/CancelOutlined';
diff --git a/src/containers/Profile/ProfileInfo.tsx b/src/containers/Profile/ProfileInfo.tsx
index 83555e9..82f640d 100644
--- a/src/containers/Profile/ProfileInfo.tsx
+++ b/src/containers/Profile/ProfileInfo.tsx
@@ -1,4 +1,4 @@
-import React, { useState } from 'react';
+import React from 'react';
import { Badge, Typography } from '@material-ui/core/';
import { makeStyles } from '@material-ui/core/styles';
import { User } from 'which-types';