Skip to content

Commit

Permalink
Merge pull request #1790 from kleros/feat/ui-improvements
Browse files Browse the repository at this point in the history
chore: nitpick space in v2 beta disputes
  • Loading branch information
jaybuidl authored Dec 13, 2024
2 parents 69ff44d + 8c480ed commit 017c5e0
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions web/src/components/DisputePreview/DisputeContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,21 @@ export const DisputeContext: React.FC<IDisputeContext> = ({ disputeDetails, isRp
return (
<>
<StyledH1>{isUndefined(disputeDetails) ? <StyledSkeleton /> : (disputeDetails?.title ?? errMsg)}</StyledH1>
{!isUndefined(disputeDetails) && (
{!isUndefined(disputeDetails) ? (
<>
<ReactMarkdownWrapper>
<ReactMarkdown>{disputeDetails?.question}</ReactMarkdown>
</ReactMarkdownWrapper>
<ReactMarkdownWrapper>
<ReactMarkdown>{disputeDetails?.description}</ReactMarkdown>
</ReactMarkdownWrapper>
{disputeDetails?.question?.trim() ? (
<ReactMarkdownWrapper>
<ReactMarkdown>{disputeDetails.question}</ReactMarkdown>
</ReactMarkdownWrapper>
) : null}
{disputeDetails?.description?.trim() ? (
<ReactMarkdownWrapper>
<ReactMarkdown>{disputeDetails.description}</ReactMarkdown>
</ReactMarkdownWrapper>
) : null}
</>
)}
) : null}

{isUndefined(disputeDetails?.frontendUrl) ? null : (
<ExternalLink href={disputeDetails?.frontendUrl} target="_blank" rel="noreferrer">
Go to arbitrable
Expand Down

0 comments on commit 017c5e0

Please sign in to comment.