mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 14:35:45 +01:00
Merged 2.0.0-m3
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user