Introduce new extension point for changeset description

This new extension point will only be rendered when the old extension
point is not bound.
This commit is contained in:
René Pfeuffer
2020-06-30 18:11:23 +02:00
parent f62683e528
commit 53993cfee7
8 changed files with 141 additions and 30 deletions

View File

@@ -32,6 +32,7 @@ import {
AvatarWrapper,
Button,
ChangesetAuthor,
ChangesetDescription,
ChangesetDiff,
ChangesetId,
changesets,
@@ -106,7 +107,7 @@ const ContributorToggleLine = styled.p`
const ChangesetSummary = styled.div`
display: flex;
justify-content: space-between;
`
`;
const SeparatedParents = styled.div`
margin-left: 1em;
@@ -180,7 +181,7 @@ class ChangesetDetails extends React.Component<Props, State> {
}}
renderAll={false}
>
{description.title}
<ChangesetDescription changeset={changeset} value={description.title} />
</ExtensionPoint>
</h4>
<article className="media">
@@ -217,7 +218,7 @@ class ChangesetDetails extends React.Component<Props, State> {
}}
renderAll={false}
>
{item}
<ChangesetDescription changeset={changeset} value={item} />
</ExtensionPoint>
<br />
</span>