Skip to content

Commit bc3f471

Browse files
author
Inessa Druzhkova
committed
changed mod event prop type
1 parent ef71a57 commit bc3f471

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/react/src/util/propTypes.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -520,13 +520,13 @@ export const moderationEventPropType = shape({
520520
cleaned_data: shape({
521521
name: string.isRequired,
522522
address: string.isRequired,
523-
country: productionLocationCountryPropType,
523+
country: productionLocationCountryPropType.isRequired,
524524
}),
525525
contributor_id: number.isRequired,
526526
contributor_name: string.isRequired,
527527
request_type: string.isRequired,
528528
source: string.isRequired,
529-
moderation_status: string.isRequired,
529+
moderation_status: oneOf(['PENDING', 'APPROVED', 'REJECTED']).isRequired,
530530
status_change_date: string,
531531
claim_id: number,
532532
});
@@ -542,12 +542,12 @@ export const potentialMatchesPropType = arrayOf(
542542
location_type: arrayOf(string),
543543
processing_type: arrayOf(string),
544544
number_of_workers: shape({
545-
min: number,
546-
max: number,
545+
min: number.isRequired,
546+
max: number.isRequired,
547547
}),
548548
coordinates: shape({
549-
lat: number,
550-
lng: number,
549+
lat: number.isRequired,
550+
lng: number.isRequired,
551551
}),
552552
local_name: string,
553553
description: string,
@@ -558,7 +558,7 @@ export const potentialMatchesPropType = arrayOf(
558558
affiliations: arrayOf(string),
559559
certifications_standards_regulations: arrayOf(string),
560560
historical_os_id: arrayOf(string),
561-
country: productionLocationCountryPropType,
561+
country: productionLocationCountryPropType.isRequired,
562562
claim_status: string,
563563
}),
564564
);

0 commit comments

Comments
 (0)