Perbaikan Project PPOB

This commit is contained in:
2021-12-28 13:46:52 +07:00
parent bf0e28c4f3
commit 7ad15665cc
6 changed files with 319 additions and 180 deletions

View File

@@ -20,6 +20,7 @@ import { ModalLoaderContext } from "../utils/modal";
export const PartnerComponent = observer((props) => {
const store = useStore();
const [value, setValue] = useState();
const [form] = Form.useForm();
const history = useHistory();
const [idData, setIdData] = useState("");
@@ -415,9 +416,21 @@ export const PartnerComponent = observer((props) => {
required: true,
message: "Please input password phone number!",
},
{
pattern: /^(?:\d*)$/,
message: "Value should contain just number",
},
{
pattern: /^[\d]{0,12}$/,
message: "Value should be less than 12 character",
},
]}
>
<Input />
<Input
onChange={(value) => {
setValue(value);
}}
/>
</Form.Item>
)}
{!isChangePassword && (