mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 15:35:49 +01:00
Fix type
This commit is contained in:
@@ -26,7 +26,7 @@ import { Trans, useTranslation, WithTranslation, withTranslation } from "react-i
|
|||||||
import classNames from "classnames";
|
import classNames from "classnames";
|
||||||
import styled from "styled-components";
|
import styled from "styled-components";
|
||||||
import { ExtensionPoint } from "@scm-manager/ui-extensions";
|
import { ExtensionPoint } from "@scm-manager/ui-extensions";
|
||||||
import { Changeset, Repository, Tag, Link } from "@scm-manager/ui-types";
|
import { Changeset, Repository, Tag, ParentChangeset } from "@scm-manager/ui-types";
|
||||||
import {
|
import {
|
||||||
AvatarImage,
|
AvatarImage,
|
||||||
AvatarWrapper,
|
AvatarWrapper,
|
||||||
@@ -52,11 +52,6 @@ type State = {
|
|||||||
collapsed: boolean;
|
collapsed: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
type Parent = {
|
|
||||||
id: string;
|
|
||||||
_links: Link[];
|
|
||||||
};
|
|
||||||
|
|
||||||
const RightMarginP = styled.p`
|
const RightMarginP = styled.p`
|
||||||
margin-right: 1em;
|
margin-right: 1em;
|
||||||
`;
|
`;
|
||||||
@@ -166,7 +161,7 @@ class ChangesetDetails extends React.Component<Props, State> {
|
|||||||
const description = changesets.parseDescription(changeset.description);
|
const description = changesets.parseDescription(changeset.description);
|
||||||
const id = <ChangesetId repository={repository} changeset={changeset} link={false} />;
|
const id = <ChangesetId repository={repository} changeset={changeset} link={false} />;
|
||||||
const date = <DateFromNow date={changeset.date} />;
|
const date = <DateFromNow date={changeset.date} />;
|
||||||
const parents = changeset._embedded.parents.map((parent: Parent) => (
|
const parents = changeset._embedded.parents.map((parent: ParentChangeset) => (
|
||||||
<ReactLink title={parent.id} to={parent.id}>
|
<ReactLink title={parent.id} to={parent.id}>
|
||||||
{parent.id.substring(0, 7)}
|
{parent.id.substring(0, 7)}
|
||||||
</ReactLink>
|
</ReactLink>
|
||||||
|
|||||||
Reference in New Issue
Block a user