From a57898bc3a8e40211bebdb58ff30a91b032b72db Mon Sep 17 00:00:00 2001 From: Amir Moghani Date: Mon, 22 Jun 2026 00:55:19 +0330 Subject: [PATCH] feat(profile): add optional national code field to user information form --- .../personalInformation/InfoRowEdit.tsx | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/features/profile/components/userInformation/personalInformation/InfoRowEdit.tsx b/src/features/profile/components/userInformation/personalInformation/InfoRowEdit.tsx index c359332..b843a9e 100644 --- a/src/features/profile/components/userInformation/personalInformation/InfoRowEdit.tsx +++ b/src/features/profile/components/userInformation/personalInformation/InfoRowEdit.tsx @@ -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( + + + setData((prev) => ({ ...prev, nationalCode: e.target.value })) + } + label={t('settingForm.optionalNationalCode', { ns: 'setting' })} + /> +