Perbaikan Project PPOB

This commit is contained in:
2022-01-06 11:07:16 +07:00
parent 6aba46aca3
commit cfa40a1004
8 changed files with 71 additions and 44 deletions

View File

@@ -421,8 +421,8 @@ export const PartnerComponent = observer((props) => {
message: "Phone number should contain just number",
},
{
pattern: /^[\d]{2,12}$/,
message: "Phone number should be less than 12 character",
pattern: /^[\d]{10,12}$/,
message: "Phone number should be 10 - 12 character",
},
]}
>

View File

@@ -251,7 +251,7 @@ export const SubcategoryComponent = observer((props) => {
>
<Input />
</Form.Item>
{!idData && (
{/* {!idData && ( */}
<Form.Item
name="categoryId"
label="Categories"
@@ -259,13 +259,13 @@ export const SubcategoryComponent = observer((props) => {
>
<Select placeholder="Select Category" allowClear>
{store.category.data.map((item) => (
<Option value={item.id} key={item.id}>
<Option value={item.id} key={item.id} defaultValue={item.name}>
{item.name}
</Option>
))}
</Select>
</Form.Item>
)}
{/* )} */}
</Form>
</Modal>
</div>