From 0d8f0ebba7369ce0afa8a78595922a3768293b3f Mon Sep 17 00:00:00 2001 From: Alex Cheung Date: Wed, 23 Aug 2023 18:21:49 +0800 Subject: [PATCH] add idtype combo --- .../auth-forms/CustomFormWizard.js | 44 ++++++++++++------- 1 file changed, 27 insertions(+), 17 deletions(-) diff --git a/src/pages/authentication/auth-forms/CustomFormWizard.js b/src/pages/authentication/auth-forms/CustomFormWizard.js index 6b65305..69db761 100644 --- a/src/pages/authentication/auth-forms/CustomFormWizard.js +++ b/src/pages/authentication/auth-forms/CustomFormWizard.js @@ -14,10 +14,12 @@ import { Typography, Select, FormGroup, + TextField, // Paper // MenuItem } from '@mui/material'; import {useForm,} from 'react-hook-form' +import Autocomplete from "@mui/material/Autocomplete"; // third party import { Formik } from 'formik'; @@ -58,6 +60,19 @@ const CustomFormWizard = (props) => { setLevel(strengthColorChi(temp)); }; + const [selectedIdDocType, setSelectedIdDocType] = useState(null); + // const [idDocTypeComboList, setIdDocTypeComboList] = useState([]); + + const idDocTypeComboList = ["passport","HKID","CNID","BR","otherCert"]; + // function updateUserList (){ + // const idList = getIdList(groupUserData); + // if(!idList.includes(selectedUser.id)){ + // const userList = [...groupUserData, selectedUser]; + // setGroupUserData(userList); + // console.log(userList); + // } + // } + // const checkFormData = (data) =>{ // const dataStatus = false; // if (data.username) @@ -339,24 +354,18 @@ const CustomFormWizard = (props) => { - + + sx={{"& .MuiInputBase-root": { height: "41px" }}} + renderInput={(params) => } + /> @@ -397,6 +406,7 @@ const CustomFormWizard = (props) => { {...register("checkDigit")} onChange={handleChange} placeholder="( )" + // sx={{height:"53px"}} inputProps={{ maxLength: 1, onKeyDown: (e) => {