diff options
author | eug-vs <eug-vs@keemail.me> | 2020-06-25 18:47:57 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-06-25 18:47:57 +0300 |
commit | c0efa234a39ed174ecbd5b5240191aa9c22b901e (patch) | |
tree | 2c0a6d52403495be9fa4989e3437400dbcfd6809 | |
parent | a35d859c84eeb2b47b31854006a92aaeb4ac19d8 (diff) | |
download | which-ui-c0efa234a39ed174ecbd5b5240191aa9c22b901e.tar.gz |
style: fix linting errors
-rw-r--r-- | src/components/PollCard/PollCard.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/PollCard/PollCard.tsx b/src/components/PollCard/PollCard.tsx index 7096150..0c9018d 100644 --- a/src/components/PollCard/PollCard.tsx +++ b/src/components/PollCard/PollCard.tsx @@ -22,7 +22,7 @@ const DATE_FORMAT = { day: 'numeric', year: 'numeric', hour: '2-digit', - minute: '2-digit', + minute: '2-digit' }; const useStyles = makeStyles(theme => ({ @@ -58,7 +58,7 @@ const PollCard: React.FC<PropTypes> = ({ initialPoll, navigate }) => { const [poll, setPoll] = useState<Poll>(initialPoll); const classes = useStyles(); const { author, contents: { left, right }, userChoice } = poll; - const date: String = new Date(poll.createdAt).toLocaleString('default', DATE_FORMAT); + const date: string = new Date(poll.createdAt).toLocaleString('default', DATE_FORMAT); const handleNavigate = () => { navigate('profile', poll.author._id); |