Skip to content

Commit

Permalink
add label to user created vessel groups
Browse files Browse the repository at this point in the history
  • Loading branch information
satellitestudiodesign committed Aug 29, 2024
1 parent 7d7f372 commit 58a4580
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
padding-top: 0;
}

.userLabel {
line-height: 0.5;
margin-top: var(--space-S);
}

.title {
font: var(--font-L);
font-size: 2.2rem;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,16 @@ export default function VesselGroupReportTitle({ vesselGroup, loading }: ReportT
return (
<div className={styles.container}>
<div className={cx(styles.row, styles.border)}>
<h1 className={styles.title} data-test="report-title">
{formatInfoField(vesselGroup.name, 'name')}
</h1>
<div>
{vesselGroup.ownerType === 'user' && (
<label className={styles.userLabel}>
{t('vesselGroupReport.user', 'User Vessel Group')}
</label>
)}
<h1 className={styles.title} data-test="report-title">
{formatInfoField(vesselGroup.name, 'name')}
</h1>
</div>
<a className={styles.reportLink} href={window.location.href}>
{t('vesselGroupReport.linkToReport', 'Check the vessel group report here')}
</a>
Expand Down
1 change: 1 addition & 0 deletions apps/fishing-map/public/locales/source/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -1025,6 +1025,7 @@
"vesselGroups": "Vessel groups"
},
"vesselGroupReport": {
"user": "User Vessel Group",
"clickToSee": "Click to see the vessel group report",
"linkToReport": "Check the vessel group report here",
"notFound": "Vessel group not found"
Expand Down

0 comments on commit 58a4580

Please sign in to comment.