diff options
author | eug-vs <eug-vs@keemail.me> | 2020-06-30 00:41:09 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-06-30 00:41:09 +0300 |
commit | 1499c0126d1a7a2377b0267b761479100c636ee9 (patch) | |
tree | 5d48eea7b8dffcac324034703ebc4e30448d75c6 /src/components/Feed/Feed.tsx | |
parent | aa63dea15c71ab014b4b57010574c7abf1f9628b (diff) | |
download | which-ui-1499c0126d1a7a2377b0267b761479100c636ee9.tar.gz |
feat!: create useNavigate hook
Diffstat (limited to 'src/components/Feed/Feed.tsx')
-rw-r--r-- | src/components/Feed/Feed.tsx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/components/Feed/Feed.tsx b/src/components/Feed/Feed.tsx index 0c4d84f..7636573 100644 --- a/src/components/Feed/Feed.tsx +++ b/src/components/Feed/Feed.tsx @@ -5,7 +5,6 @@ import PollCard from '../PollCard/PollCard'; interface PropTypes { polls: Poll[]; - navigate: (prefix: string, id: string) => void; } const useStyles = makeStyles(theme => ({ @@ -16,11 +15,11 @@ const useStyles = makeStyles(theme => ({ } })); -const Feed: React.FC<PropTypes> = ({ polls, navigate }) => { +const Feed: React.FC<PropTypes> = ({ polls }) => { const classes = useStyles(); return ( <div className={classes.root}> - {polls.map(poll => <PollCard initialPoll={poll} key={poll._id} navigate={navigate} />)} + {polls.map(poll => <PollCard initialPoll={poll} key={poll._id} />)} </div> ); }; |