Skip to content

Commit

Permalink
fix(contributors-info): improve display
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihoub2 committed Jun 28, 2024
1 parent 8122c30 commit 4f6534f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ const MessagePreview = ({
<Row className="fr-grid-row--center">
<Col md="8" className="comment">
<Text size="sm">
Commentaire ({data?.team ? data.team[0] : ""})
</Text>{" "}
<Text size="sm">{data.comment}</Text>
Commentaire ({data?.team ? data.team[0] : ""}){" "}
<strong> : {data.comment}</strong>
</Text>
</Col>
</Row>
)}
Expand Down
13 changes: 8 additions & 5 deletions src/pages/contribution-page/message-preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,19 +149,22 @@ const MessagePreview = ({
</Row>
<Col>
{data?.team && data?.team?.length > 0 && (
<Text size="sm" bold>
Traité par : {data?.team[0]} le{" "}
{new Date(data.modified_at).toLocaleDateString()}
<Text size="sm">
Traité par :{" "}
<strong>
{data?.team[0]} le{" "}
{new Date(data.modified_at).toLocaleDateString()}
</strong>
</Text>
)}
</Col>
<Col>
{data?.comment && (
<>
<Text size="sm" bold>
<Text size="sm">
Commentaire ({data?.team ? data.team[0] : ""}){" "}
<strong> : {data.comment}</strong>
</Text>
<Text size="sm">{data?.comment}</Text>
</>
)}
</Col>
Expand Down

0 comments on commit 4f6534f

Please sign in to comment.