diff options
author | Eugene Sokolov <eug-vs@keemail.me> | 2020-06-15 15:55:16 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-15 15:55:16 +0300 |
commit | 185ab6f4025ff41313b12efb8cff49009c1af85e (patch) | |
tree | c394f99472b4c0b7ee95bec1813832c922dd5477 /src/components/Feed/Feed.tsx | |
parent | 987c050faa5353ae2f250d82055d6685fefa58f7 (diff) | |
parent | 2a65284a385915818ca5f3e3b7354554e19af9cb (diff) | |
download | which-ui-185ab6f4025ff41313b12efb8cff49009c1af85e.tar.gz |
Merge pull request #36 from ilyayudovin/other-profiles
Profiles
Diffstat (limited to 'src/components/Feed/Feed.tsx')
-rw-r--r-- | src/components/Feed/Feed.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/Feed/Feed.tsx b/src/components/Feed/Feed.tsx index 8dc3ec1..3b8e16f 100644 --- a/src/components/Feed/Feed.tsx +++ b/src/components/Feed/Feed.tsx @@ -5,6 +5,7 @@ import PollCard from '../PollCard/PollCard'; interface PropTypes { polls: Poll[]; + navigate: (prefix: string, id: string) => void; } const useStyles = makeStyles(theme => ({ @@ -15,12 +16,12 @@ const useStyles = makeStyles(theme => ({ } })); -const Feed: React.FC<PropTypes> = ({ polls }) => { +const Feed: React.FC<PropTypes> = ({ polls, navigate }) => { const classes = useStyles(); return ( <div className={classes.root}> - {polls.map(poll => <PollCard poll={poll} key={poll._id} />)} + {polls.map(poll => <PollCard poll={poll} key={poll._id} navigate={navigate} />)} </div> ); }; |