Merged 2.0.0-m3

This commit is contained in:
Philipp Czora
2018-11-07 14:45:27 +01:00
9 changed files with 163 additions and 15 deletions

View File

@@ -19,7 +19,8 @@ import SingleGroup from "../groups/containers/SingleGroup";
import AddGroup from "../groups/containers/AddGroup";
import Config from "../config/containers/Config";
import ChangeUserPassword from "../users/components/ChangeUserPassword";
import ChangeUserPassword from "./ChangeUserPassword";
import Profile from "./Profile";
type Props = {
authenticated?: boolean
@@ -79,11 +80,7 @@ class Main extends React.Component<Props> {
path="/user/:name"
component={SingleUser}
/>
<ProtectedRoute
authenticated={authenticated}
path={"/me/password"}
component={ChangeUserPassword}
/>
<ProtectedRoute
exact
path="/groups"
@@ -112,6 +109,11 @@ class Main extends React.Component<Props> {
component={Config}
authenticated={authenticated}
/>
<ProtectedRoute
path="/me"
component={Profile}
authenticated={authenticated}
/>
</Switch>
</div>
);