Skip to content

Commit

Permalink
CM-698: add new roles to group individuals
Browse files Browse the repository at this point in the history
  • Loading branch information
jdolkowski committed May 28, 2024
1 parent 604f14c commit e3a5009
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/pickers/GroupIndividualRecipientTypePicker.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import React from 'react';
import { ConstantBasedPicker } from '@openimis/fe-core';
import {
RECIPIENT_TYPE_LIST,
} from '../constants';

function GroupIndividualRecipientTypePicker(props) {
const {
required, readOnly, onChange, value, nullLabel, withLabel,
} = props;
console.log(value)

Check warning on line 11 in src/pickers/GroupIndividualRecipientTypePicker.js

View workflow job for this annotation

GitHub Actions / lint

Unexpected console statement

Check failure on line 11 in src/pickers/GroupIndividualRecipientTypePicker.js

View workflow job for this annotation

GitHub Actions / lint

Missing semicolon
return (
<ConstantBasedPicker
module="individual"
label="groupIndividual.groupIndividualRecipientTypePicker"
constants={RECIPIENT_TYPE_LIST}
onChange={onChange}
value={value}
required={required}
readOnly={readOnly}
withNull
nullLabel={nullLabel}
withLabel={withLabel}
/>
);
}

export default GroupIndividualRecipientTypePicker;

0 comments on commit e3a5009

Please sign in to comment.