form builder
This commit is contained in:
@@ -26,7 +26,7 @@ const FormBuilderUpdate: FC = () => {
|
||||
isRequired: true,
|
||||
order: 1,
|
||||
type: FieldTypeEnum.text,
|
||||
entityType: 'product',
|
||||
entityType: '',
|
||||
multiple: false
|
||||
},
|
||||
validationSchema: Yup.object({
|
||||
@@ -67,7 +67,7 @@ const FormBuilderUpdate: FC = () => {
|
||||
<div className='mt-5'>
|
||||
<div className='flex justify-between items-center'>
|
||||
|
||||
<h1 className='text-lg font-light'>ویرایش ویژگی</h1>
|
||||
<h1 className='text-lg font-light'>ویرایش فیلد</h1>
|
||||
<Button
|
||||
className='w-fit px-6'
|
||||
onClick={() => formik.handleSubmit()}
|
||||
@@ -75,7 +75,7 @@ const FormBuilderUpdate: FC = () => {
|
||||
>
|
||||
<div className='flex gap-1.5'>
|
||||
<AddSquare size={18} color='black' />
|
||||
<div className='text-[13px] font-light'>ویرایش ویژگی</div>
|
||||
<div className='text-[13px] font-light'>ویرایش فیلد</div>
|
||||
</div>
|
||||
</Button>
|
||||
</div>
|
||||
@@ -83,7 +83,7 @@ const FormBuilderUpdate: FC = () => {
|
||||
<div className='mt-8 bg-white p-6 rounded-3xl flex-1'>
|
||||
<div className='rowTwoInput'>
|
||||
<Input
|
||||
label='نام ویژگی'
|
||||
label='نام فیلد'
|
||||
{...formik.getFieldProps('name')}
|
||||
error_text={formik.touched.name && formik.errors.name ? formik.errors.name : ''}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user