aboutsummaryrefslogtreecommitdiff
path: root/src/containers/FeedPage/FeedPage.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/containers/FeedPage/FeedPage.tsx')
-rw-r--r--src/containers/FeedPage/FeedPage.tsx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/containers/FeedPage/FeedPage.tsx b/src/containers/FeedPage/FeedPage.tsx
index da0fb2a..7445c25 100644
--- a/src/containers/FeedPage/FeedPage.tsx
+++ b/src/containers/FeedPage/FeedPage.tsx
@@ -2,23 +2,23 @@ import React from 'react';
import { Poll } from 'which-types';
import { Container } from '@material-ui/core/';
-import Feed from '../../components/Feed/Feed';
+import PollsList from '../../components/PollsList/PollsList';
import PollSubmission from './PollSubmission';
import { useAuth } from '../../hooks/useAuth';
import { useFeed } from '../../hooks/APIClient';
const FeedPage: React.FC = () => {
- const { data, mutate } = useFeed();
+ const { data: polls, mutate } = useFeed();
const { isAuthenticated } = useAuth();
const addPoll = (poll: Poll): void => {
- mutate([poll, ...data], true);
+ mutate([poll, ...polls], true);
};
return (
<Container maxWidth="sm" disableGutters>
{isAuthenticated && <PollSubmission addPoll={addPoll} />}
- <Feed polls={data} />
+ <PollsList polls={polls} mutate={mutate} />
</Container>
);
};