From 5744923265ff51e392575edfd6a8182589105dc6 Mon Sep 17 00:00:00 2001
From: eug-vs <eug-vs@keemail.me>
Date: Wed, 12 Aug 2020 01:59:27 +0300
Subject: feat: PollCreation page and Fab component

---
 src/containers/Profile/Profile.tsx | 2 ++
 1 file changed, 2 insertions(+)

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

diff --git a/src/containers/Profile/Profile.tsx b/src/containers/Profile/Profile.tsx
index 7e929fb..33abfc2 100644
--- a/src/containers/Profile/Profile.tsx
+++ b/src/containers/Profile/Profile.tsx
@@ -6,6 +6,7 @@ import { Container } from '@material-ui/core';
 import ProfileInfo from './ProfileInfo';
 import PollsList from '../../components/PollsList/PollsList';
 import Loading from '../../components/Loading/Loading';
+import Fab from '../../components/Fab/Fab';
 import { useAuth } from '../../hooks/useAuth';
 import { useUser, useProfile } from '../../hooks/APIClient';
 
@@ -46,6 +47,7 @@ const Profile: React.FC = () => {
           ? <Loading />
           : <PollsList polls={polls} mutate={mutatePolls} />
       }
+      {user?.username === username && <Fab />}
     </Container>
   );
 };
-- 
cgit v1.2.3

