From cab8de5c6b246e1aa1376fa2b8666f09b44b6469 Mon Sep 17 00:00:00 2001
From: eug-vs <eug-vs@keemail.me>
Date: Mon, 10 Aug 2020 11:12:06 +0300
Subject: refator: Feed -> PollList

---
 src/containers/FeedPage/FeedPage.tsx | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'src/containers/FeedPage/FeedPage.tsx')

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

