aboutsummaryrefslogtreecommitdiff
path: root/src/pages/FeedPage
diff options
context:
space:
mode:
authorEugene Sokolov <eug-vs@keemail.me>2020-06-15 15:55:16 +0300
committerGitHub <noreply@github.com>2020-06-15 15:55:16 +0300
commit185ab6f4025ff41313b12efb8cff49009c1af85e (patch)
treec394f99472b4c0b7ee95bec1813832c922dd5477 /src/pages/FeedPage
parent987c050faa5353ae2f250d82055d6685fefa58f7 (diff)
parent2a65284a385915818ca5f3e3b7354554e19af9cb (diff)
downloadwhich-ui-185ab6f4025ff41313b12efb8cff49009c1af85e.tar.gz
Merge pull request #36 from ilyayudovin/other-profiles
Profiles
Diffstat (limited to 'src/pages/FeedPage')
-rw-r--r--src/pages/FeedPage/FeedPage.tsx8
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;