From c0efa234a39ed174ecbd5b5240191aa9c22b901e Mon Sep 17 00:00:00 2001 From: eug-vs Date: Thu, 25 Jun 2020 18:47:57 +0300 Subject: style: fix linting errors --- src/components/PollCard/PollCard.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 = ({ initialPoll, navigate }) => { const [poll, setPoll] = useState(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); -- cgit v1.2.3