Skip to content

Commit

Permalink
Add proptypes
Browse files Browse the repository at this point in the history
  • Loading branch information
VadimKovalenkoSNF committed Dec 23, 2024
1 parent 6c55356 commit df582fc
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ const DashboardContributionRecord = ({
const moderationEventStatus = singleModerationEventItem.status || '';
const jsonResults = JSON.stringify(singleModerationEventItem, null, 2);
const potentialMatchCount = matches.length || 0;
// TODO: automatic write claim into moderation-events table to be done in Q1
// OSDEV-1445: automatic write claim into moderation-events table to be done in Q1
const hasClaimID = singleModerationEventItem.claim_id;
const isDisabled =
moderationEventStatus === MODERATION_STATUSES_ENUM.REJECTED ||
Expand Down Expand Up @@ -440,10 +440,14 @@ DashboardContributionRecord.defaultProps = {
};

DashboardContributionRecord.propTypes = {
push: func.isRequired,
singleModerationEventItem: moderationEventsListItemPropType,
matches: potentialMatchesPropType,
moderationEventFetching: bool.isRequired,
fetchModerationEvent: func.isRequired,
updateModerationEvent: func.isRequired,
createProductionLocation: func.isRequired,
confirmPotentialMatch: func.isRequired,
fetchMatches: func.isRequired,
classes: object.isRequired,
fetchModerationEventError: string,
Expand Down

0 comments on commit df582fc

Please sign in to comment.