Perbaikan Project PPOB
This commit is contained in:
@@ -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",
|
||||
},
|
||||
]}
|
||||
>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user