aboutsummaryrefslogtreecommitdiff
path: root/src/containers/Profile
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-08-12 01:59:27 +0300
committereug-vs <eug-vs@keemail.me>2020-08-13 17:16:17 +0300
commit5744923265ff51e392575edfd6a8182589105dc6 (patch)
tree9294f30455405ddaecfdd4ecf7eedf6c5c80c872 /src/containers/Profile
parent86a946b2b0535829857757eeaa2226e6f0814f3b (diff)
downloadwhich-ui-5744923265ff51e392575edfd6a8182589105dc6.tar.gz
feat: PollCreation page and Fab component
Diffstat (limited to 'src/containers/Profile')
-rw-r--r--src/containers/Profile/Profile.tsx2
1 files changed, 2 insertions, 0 deletions
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>
);
};