updated group navigation

This commit is contained in:
Florian Scholdei
2019-01-18 10:16:45 +01:00
parent 3318e5291e
commit f96a7b6ca5
2 changed files with 8 additions and 18 deletions

View File

@@ -12,12 +12,10 @@
"subtitle": "Create, read, update and delete groups"
},
"single-group": {
"error-title": "Error",
"error-subtitle": "Unknown group error",
"navigation-label": "Navigation",
"actions-label": "Actions",
"information-label": "Information",
"back-label": "Back"
"navigationLabel": "Group Navigation",
"informationNavLink": "Information",
"errorTitle": "Error",
"errorSubtitle": "Unknown group error"
},
"add-group": {
"title": "Create Group",

View File

@@ -75,8 +75,8 @@ class SingleGroup extends React.Component<Props> {
if (error) {
return (
<ErrorPage
title={t("single-group.error-title")}
subtitle={t("single-group.error-subtitle")}
title={t("single-group.errorTitle")}
subtitle={t("single-group.errorSubtitle")}
error={error}
/>
);
@@ -105,20 +105,12 @@ class SingleGroup extends React.Component<Props> {
</div>
<div className="column">
<Navigation>
<Section label={t("single-group.navigation-label")}>
<Section label={t("single-group.navigationLabel")}>
<NavLink
to={`${url}`}
label={t("single-group.information-label")}
label={t("single-group.informationNavLink")}
/>
</Section>
<Section label={t("single-group.actions-label")}>
<DeleteGroupNavLink
group={group}
deleteGroup={this.deleteGroup}
/>
<EditGroupNavLink group={group} editUrl={`${url}/edit`} />
<NavLink to="/groups" label={t("single-group.back-label")} />
</Section>
</Navigation>
</div>
</div>