restructure scm-ui and use ui-components and ui-types

This commit is contained in:
Sebastian Sdorra
2018-09-05 14:32:49 +02:00
parent 6a4f3a8cf6
commit c64a5a74d6
275 changed files with 12693 additions and 11311 deletions

View File

@@ -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);