Skip to content

Commit

Permalink
Add RTC fishing alerts in front end
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentAntoine committed Nov 5, 2024
1 parent 779cc31 commit c0858c2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions frontend/src/domain/entities/alerts/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ export const COMMON_ALERT_TYPE_OPTION: Record<
nameWithAlertDetails: (percentOfTolerance, minimumWeightThreshold) =>
`Tolérance de ${percentOfTolerance}% non respectée, appliquée pour un poids minimum de ${minimumWeightThreshold}kg.`
},
RTC_FISHING_ALERT: {
code: PendingAlertValueType.RTC_FISHING_ALERT,
isOperationalAlert: true,
name: 'Pêche en zone RTC'
},
SUSPICION_OF_UNDER_DECLARATION_ALERT: {
code: PendingAlertValueType.SUSPICION_OF_UNDER_DECLARATION_ALERT,
isOperationalAlert: true,
Expand Down
1 change: 1 addition & 0 deletions frontend/src/domain/entities/alerts/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export enum PendingAlertValueType {
MISSING_DEP_ALERT = 'MISSING_DEP_ALERT',
MISSING_FAR_48_HOURS_ALERT = 'MISSING_FAR_48_HOURS_ALERT',
MISSING_FAR_ALERT = 'MISSING_FAR_ALERT',
RTC_FISHING_ALERT = 'RTC_FISHING_ALERT',
SUSPICION_OF_UNDER_DECLARATION_ALERT = 'SUSPICION_OF_UNDER_DECLARATION_ALERT',
THREE_MILES_TRAWLING_ALERT = 'THREE_MILES_TRAWLING_ALERT',
TWELVE_MILES_FISHING_ALERT = 'TWELVE_MILES_FISHING_ALERT'
Expand Down

0 comments on commit c0858c2

Please sign in to comment.