From c311c538a3442aed8d77449736f28be66feea57c Mon Sep 17 00:00:00 2001
From: eug-vs <eug-vs@keemail.me>
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/FeedPage.tsx')

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;
-- 
cgit v1.2.3

