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 styled from "styled-components";
|
||||
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 {
|
||||
AvatarImage,
|
||||
AvatarWrapper,
|
||||
@@ -52,11 +52,6 @@ type State = {
|
||||
collapsed: boolean;
|
||||
};
|
||||
|
||||
type Parent = {
|
||||
id: string;
|
||||
_links: Link[];
|
||||
};
|
||||
|
||||
const RightMarginP = styled.p`
|
||||
margin-right: 1em;
|
||||
`;
|
||||
@@ -166,7 +161,7 @@ class ChangesetDetails extends React.Component<Props, State> {
|
||||
const description = changesets.parseDescription(changeset.description);
|
||||
const id = <ChangesetId repository={repository} changeset={changeset} link={false} />;
|
||||
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}>
|
||||
{parent.id.substring(0, 7)}
|
||||
</ReactLink>
|
||||
|
||||
Reference in New Issue
Block a user