From c311c538a3442aed8d77449736f28be66feea57c Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sun, 14 Jun 2020 22:42:52 +0300 Subject: feat: configure navigation --- src/pages/FeedPage/FeedPage.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/pages/FeedPage') 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 = ({ navigate }) => { const [polls, setPolls] = useState([]); useEffect(() => { @@ -12,7 +16,7 @@ const FeedPage: React.FC = () => { }); }, []); - return ; + return ; }; export default FeedPage; -- cgit v1.2.3