refactoring

This commit is contained in:
Maren Süwer
2018-10-18 15:20:30 +02:00
parent 9ac5b3fe37
commit 9e5df56ecf
12 changed files with 45 additions and 33 deletions

View File

@@ -1,5 +1,5 @@
//@flow
import React from "react";
import * as React from "react";
import { binder } from "@scm-manager/ui-extensions";
type Props = {

View File

@@ -1,6 +1,9 @@
//@flow
import React from "react";
import type { Changeset, Repository } from "../../../../../scm-ui-components/packages/ui-types/src/index";
import type {
Changeset,
Repository
} from "../../../../../scm-ui-components/packages/ui-types/src/index";
import { Interpolate, translate } from "react-i18next";
import injectSheet from "react-jss";
import ChangesetTag from "./ChangesetTag";
@@ -11,6 +14,7 @@ import AvatarWrapper from "./AvatarWrapper";
import AvatarImage from "./AvatarImage";
import classNames from "classnames";
import ChangesetId from "./ChangesetId";
import type { Tag } from "@scm-manager/ui-types";
const styles = {
spacing: {
@@ -27,7 +31,7 @@ type Props = {
class ChangesetDetails extends React.Component<Props> {
render() {
const { changeset, repository, t, classes } = this.props;
const { changeset, repository, classes } = this.props;
const description = parseDescription(changeset.description);