feat(profile): add optional national code field to user information form
This commit is contained in:
@@ -66,11 +66,6 @@ export const InfoRowEdit = forwardRef(
|
||||
label: t('settingForm.familyName', { ns: 'setting' }),
|
||||
value: data.lastName,
|
||||
},
|
||||
{
|
||||
name: 'nationalCode' as const,
|
||||
label: t('settingForm.optionalNationalCode', { ns: 'setting' }),
|
||||
value: data.nationalCode,
|
||||
},
|
||||
];
|
||||
|
||||
return (
|
||||
@@ -136,6 +131,17 @@ export const InfoRowEdit = forwardRef(
|
||||
</FormHelperText>
|
||||
</FormControl>
|
||||
</Box>
|
||||
<Box sx={{ width: { xs: '100%', sm: '48%', md: 'calc(50% - 8px)' } }}>
|
||||
<TextField
|
||||
fullWidth
|
||||
name="nationalCode"
|
||||
value={data.nationalCode}
|
||||
onChange={(e) =>
|
||||
setData((prev) => ({ ...prev, nationalCode: e.target.value }))
|
||||
}
|
||||
label={t('settingForm.optionalNationalCode', { ns: 'setting' })}
|
||||
/>
|
||||
</Box>
|
||||
|
||||
<Autocomplete
|
||||
sx={{ width: { xs: '100%', sm: '48%', md: 'calc(50% - 8px)' } }}
|
||||
|
||||
Reference in New Issue
Block a user