diff options
Diffstat (limited to 'src/pages/FeedPage')
-rw-r--r-- | src/pages/FeedPage/FeedPage.tsx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/pages/FeedPage/FeedPage.tsx b/src/pages/FeedPage/FeedPage.tsx index 03bacfd..fd75190 100644 --- a/src/pages/FeedPage/FeedPage.tsx +++ b/src/pages/FeedPage/FeedPage.tsx @@ -3,7 +3,11 @@ import { Poll } from '../../types'; import Feed from '../../components/Feed/Feed'; import { get } from '../../requests'; -const FeedPage: React.FC = () => { +interface PropTypes { + navigate: (prefix: string, id: string) => void; +} + +const FeedPage: React.FC<PropTypes> = ({ navigate }) => { const [polls, setPolls] = useState<Poll[]>([]); useEffect(() => { @@ -12,7 +16,7 @@ const FeedPage: React.FC = () => { }); }, []); - return <Feed polls={polls} />; + return <Feed polls={polls} navigate={navigate} />; }; export default FeedPage; |