Created
March 2, 2021 15:33
-
-
Save mherrerabarraza/559d074d3a72ac4f49237108e8d8453b 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
<Select | |
style={{ | |
marginTop: 10, | |
}} | |
value={idContrato} | |
onChange={handleInputChange} | |
native | |
label="Contrato" | |
required | |
inputProps={{ | |
name: "idContrato", | |
id: "idContrato", | |
}} | |
> | |
<option key="default" defaultValue> | |
Seleccione Contrato | |
</option> | |
{contratos ? ( | |
contratos.map((contrato) => ( | |
<option | |
key={contrato.id} | |
id={contrato.id} | |
value={contrato.id} | |
> | |
{contrato.idContrato} | |
</option> | |
)) | |
) : ( | |
<option key="nodata">No existen contratos</option> | |
)} | |
</Select> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment