Perbaikan Menu Transaksi
This commit is contained in:
parent
07c08472b3
commit
fc944a23e0
|
@ -422,7 +422,7 @@ export const PartnerComponent = observer((props) => {
|
|||
},
|
||||
{
|
||||
pattern: /^[\d]{2,12}$/,
|
||||
message: "Phone number should be 12 character",
|
||||
message: "Phone number should be less than 12 character",
|
||||
},
|
||||
]}
|
||||
>
|
||||
|
|
|
@ -103,7 +103,7 @@ export const MembershipModal = ({
|
|||
{
|
||||
//pattern: /^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#\$%\^&\*])(?=.{8,})/,
|
||||
pattern: /^[\d]{2,12}$/,
|
||||
message: "Phone number should be 12 character",
|
||||
message: "Phone number should be less than 12 character",
|
||||
},
|
||||
]}
|
||||
>
|
||||
|
|
|
@ -115,7 +115,7 @@ export const Product = observer(() => {
|
|||
<Col key={index} xs={24} md={16} lg={8}>
|
||||
<Card
|
||||
onClick={() => {
|
||||
setVisibleModalBuy(true)
|
||||
setVisibleModalBuy(true);
|
||||
}}
|
||||
hoverable
|
||||
style={{
|
||||
|
@ -123,7 +123,7 @@ export const Product = observer(() => {
|
|||
marginLeft: 10,
|
||||
borderColor: "salmon",
|
||||
height: 100,
|
||||
marginBottom: 10
|
||||
marginBottom: 10,
|
||||
}}
|
||||
>
|
||||
<span style={{ color: "black" }}>{item.product_name}</span>
|
||||
|
@ -162,7 +162,20 @@ export const Product = observer(() => {
|
|||
<Form.Item
|
||||
name="destination"
|
||||
label="Destination"
|
||||
rules={[{required: true, message: "Please input Destination Number!"}]}
|
||||
rules={[
|
||||
{
|
||||
required: true,
|
||||
message: "Please input Destination Number!",
|
||||
},
|
||||
{
|
||||
pattern: /^(?:\d*)$/,
|
||||
message: "Value should contain just number",
|
||||
},
|
||||
{
|
||||
pattern: /^[\d]{2,12}$/,
|
||||
message: "Value should be less than 12 character",
|
||||
},
|
||||
]}
|
||||
>
|
||||
<Input />
|
||||
</Form.Item>
|
||||
|
|
Loading…
Reference in New Issue
Block a user