Implemented Profile component

This commit is contained in:
Philipp Czora
2018-11-05 16:03:54 +01:00
parent ef23178fad
commit 521f3dd9e9
7 changed files with 115 additions and 5 deletions

View File

@@ -19,6 +19,7 @@ import SingleGroup from "../groups/containers/SingleGroup";
import AddGroup from "../groups/containers/AddGroup";
import Config from "../config/containers/Config";
import Profile from "../users/containers/Profile";
type Props = {
authenticated?: boolean
@@ -106,6 +107,12 @@ class Main extends React.Component<Props> {
component={Config}
authenticated={authenticated}
/>
<ProtectedRoute
exact
path="/me"
component={Profile}
authenticated={authenticated}
/>
</Switch>
</div>
);