Last active
September 16, 2021 04:17
-
-
Save coliveravenegas/4af622e80be9a6a6bd872d5d646d000f to your computer and use it in GitHub Desktop.
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
<React.Fragment> | |
<p className="my-8 font-subtitle4">Tipo de documento</p> | |
<div className="flex flex-row items-start"> | |
<Controller | |
render={({ onChange, value, ref }) => ( | |
<> | |
<Radio | |
htmlProps={{ | |
htmlFor: 'NIT', | |
}} | |
className="mb-16 mr-16" | |
checked={value === 'NIT'} | |
id="NIT" | |
label="NIT" | |
name="documentType" | |
onChange={onChange} | |
value="NIT" | |
/> | |
<Radio | |
checked={value === 'CEDULA'} | |
htmlProps={{ | |
htmlFor: 'CEDULA', | |
}} | |
className="mb-16" | |
id="CEDULA" | |
label="Cédula" | |
name="documentType" | |
onChange={onChange} | |
value="CEDULA" | |
/> | |
</> | |
)} | |
name="documentType" | |
control={control} | |
/> | |
</div> | |
</React.Fragment> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment