feat(profile): add optional national code field to user information form

This commit is contained in:
2026-06-22 00:55:19 +03:30
parent 63e826b242
commit a57898bc3a

View File

@@ -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)' } }}