-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CM-698: add new roles to group individuals
- Loading branch information
1 parent
604f14c
commit e3a5009
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 GitHub Actions / lint
|
||
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; |