mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 17:05:43 +01:00
restructure scm-ui and use ui-components and ui-types
This commit is contained in:
@@ -1,20 +1,18 @@
|
||||
//@flow
|
||||
import React from "react";
|
||||
import NavLink from "../../../components/navigation/NavLink";
|
||||
import { NavLink } from "@scm-manager/ui-components";
|
||||
import { translate } from "react-i18next";
|
||||
import type { Group } from "../../types/Group";
|
||||
import type { Group } from "@scm-manager/ui-types";
|
||||
|
||||
type Props = {
|
||||
t: string => string,
|
||||
editUrl: string,
|
||||
group: Group
|
||||
}
|
||||
};
|
||||
|
||||
type State = {
|
||||
}
|
||||
type State = {};
|
||||
|
||||
class EditGroupNavLink extends React.Component<Props, State> {
|
||||
|
||||
render() {
|
||||
const { t, editUrl } = this.props;
|
||||
if (!this.isEditable()) {
|
||||
@@ -25,7 +23,7 @@ class EditGroupNavLink extends React.Component<Props, State> {
|
||||
|
||||
isEditable = () => {
|
||||
return this.props.group._links.update;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
export default translate("groups")(EditGroupNavLink);
|
||||
export default translate("groups")(EditGroupNavLink);
|
||||
|
||||
Reference in New Issue
Block a user