aboutsummaryrefslogtreecommitdiff
path: root/src/containers/Profile
diff options
context:
space:
mode:
authorEugene Sokolov <eug-vs@keemail.me>2020-08-13 17:27:32 +0300
committerGitHub <noreply@github.com>2020-08-13 17:27:32 +0300
commitd1e0dcd8538a61184eca50fbf7769c6d2943ff6b (patch)
tree9c2ba42d34e469d292fc1fe807e3f814a872a69e /src/containers/Profile
parent2dc5fc00347256982136deea98d483c444002595 (diff)
parent52799ec4e4cd5801423ee0d2aa56039c061afdb4 (diff)
downloadwhich-ui-d1e0dcd8538a61184eca50fbf7769c6d2943ff6b.tar.gz
Merge pull request #78 from which-ecosystem/redesign
Move PollSubmission to separate page and add FAB
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>
);
};