mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 14:35:45 +01:00
added first routing and mock for groups page
This commit is contained in:
@@ -31,7 +31,8 @@
|
||||
"primary-navigation": {
|
||||
"repositories": "Repositories",
|
||||
"users": "Users",
|
||||
"logout": "Logout"
|
||||
"logout": "Logout",
|
||||
"groups": "Groups"
|
||||
},
|
||||
"paginator": {
|
||||
"next": "Next",
|
||||
|
||||
@@ -23,6 +23,11 @@ class PrimaryNavigation extends React.Component<Props> {
|
||||
match="/(user|users)"
|
||||
label={t("primary-navigation.users")}
|
||||
/>
|
||||
<PrimaryNavigationLink
|
||||
to="/groups"
|
||||
match="/(group|groups)"
|
||||
label={t("primary-navigation.groups")}
|
||||
/>
|
||||
<PrimaryNavigationLink
|
||||
to="/logout"
|
||||
label={t("primary-navigation.logout")}
|
||||
|
||||
@@ -13,6 +13,8 @@ import ProtectedRoute from "../components/ProtectedRoute";
|
||||
import AddUser from "../users/containers/AddUser";
|
||||
import SingleUser from "../users/containers/SingleUser";
|
||||
|
||||
import Groups from "../groups/containers/Groups";
|
||||
|
||||
type Props = {
|
||||
authenticated?: boolean
|
||||
};
|
||||
@@ -53,6 +55,12 @@ class Main extends React.Component<Props> {
|
||||
path="/user/:name"
|
||||
component={SingleUser}
|
||||
/>
|
||||
<ProtectedRoute
|
||||
exact
|
||||
path="/groups"
|
||||
component={Groups}
|
||||
authenticated={authenticated}
|
||||
/>
|
||||
</Switch>
|
||||
</div>
|
||||
);
|
||||
|
||||
21
scm-ui/src/groups/containers/Groups.js
Normal file
21
scm-ui/src/groups/containers/Groups.js
Normal file
@@ -0,0 +1,21 @@
|
||||
// @flow
|
||||
import React from "react";
|
||||
import type { History } from "history";
|
||||
import { connect } from "react-redux";
|
||||
import { translate } from "react-i18next";
|
||||
|
||||
type Props = {
|
||||
};
|
||||
|
||||
|
||||
class Groups extends React.Component<Props> {
|
||||
|
||||
|
||||
render() {
|
||||
return (
|
||||
"Groups will be displayed here!"
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
export default Groups;
|
||||
Reference in New Issue
Block a user