This commit is contained in:
hamid zarghami
2025-02-23 16:58:51 +03:30
parent bc3d068dfd
commit 158da6ce8a
16 changed files with 138 additions and 53 deletions
@@ -113,12 +113,14 @@ const Personal: FC = () => {
]}
{...formik.getFieldProps('gender')}
error_text={formik.touched.gender && formik.errors.gender ? formik.errors.gender : ''}
readOnly={isReadOnly}
/>
<Input
label={t('financial.father_name')}
{...formik.getFieldProps('fatherName')}
error_text={formik.touched.fatherName && formik.errors.fatherName ? formik.errors.fatherName : ''}
readOnly={isReadOnly}
/>
</div>
@@ -148,6 +150,7 @@ const Personal: FC = () => {
label={t('financial.nationality')}
{...formik.getFieldProps('nationality')}
error_text={formik.touched.nationality && formik.errors.nationality ? formik.errors.nationality : ''}
readOnly={isReadOnly}
/>
</div>
@@ -204,6 +207,7 @@ const Personal: FC = () => {
label={t('financial.company_postal_code')}
{...formik.getFieldProps('postalCode')}
error_text={formik.touched.postalCode && formik.errors.postalCode ? formik.errors.postalCode : ''}
readOnly={isReadOnly}
/>
</div>
@@ -212,6 +216,7 @@ const Personal: FC = () => {
{...formik.getFieldProps('address')}
error_text={formik.touched.address && formik.errors.address ? formik.errors.address : ''}
label={t('financial.address')}
readOnly={isReadOnly}
/>
</div>
@@ -228,6 +233,7 @@ const Personal: FC = () => {
className='w-fit px-7'
onClick={() => formik.handleSubmit()}
isLoading={createRealUser.isPending}
disabled={isReadOnly}
>
<div className='flex gap-2 items-center'>
<TickCircle