| @@ -52,17 +52,11 @@ const SearchDemandNoteForm = ({ applySearch, searchCriteria, issueComboData | |||||
| const [toDateValue, setToDateValue] = React.useState("dd / mm / yyyy"); | const [toDateValue, setToDateValue] = React.useState("dd / mm / yyyy"); | ||||
| React.useEffect(() => { | React.useEffect(() => { | ||||
| console.log(minDate) | |||||
| if (minDate != searchCriteria.dateFrom) { | |||||
| setFromDateValue(minDate); | |||||
| } | |||||
| setFromDateValue(minDate); | |||||
| }, [minDate]); | }, [minDate]); | ||||
| React.useEffect(() => { | React.useEffect(() => { | ||||
| console.log(maxDate) | |||||
| if (maxDate != searchCriteria.dateTo) { | |||||
| setToDateValue(maxDate); | |||||
| } | |||||
| setToDateValue(maxDate); | |||||
| }, [maxDate]); | }, [maxDate]); | ||||
| function FormDateInputComponent({ inputRef, ...props }) { | function FormDateInputComponent({ inputRef, ...props }) { | ||||
| @@ -145,7 +139,9 @@ const SearchDemandNoteForm = ({ applySearch, searchCriteria, issueComboData | |||||
| function resetForm() { | function resetForm() { | ||||
| setType([]); | setType([]); | ||||
| // setStatus({ key: 0, label: 'All', type: 'all' }); | // setStatus({ key: 0, label: 'All', type: 'all' }); | ||||
| setOrgSelected({}); | |||||
| // setOrgSelected({}); | |||||
| setMinDate(DateUtils.dateValue(new Date().setDate(new Date().getDate()-14))) | |||||
| setMaxDate(DateUtils.dateValue(new Date())) | |||||
| setIssueSelected({}); | setIssueSelected({}); | ||||
| reset(); | reset(); | ||||
| } | } | ||||
| @@ -62,7 +62,7 @@ export default function SearchPublicNoticeTable({ recordList }) { | |||||
| headerName: 'Transaction Date', | headerName: 'Transaction Date', | ||||
| flex: 1, | flex: 1, | ||||
| valueGetter: (params) => { | valueGetter: (params) => { | ||||
| return DateUtils.dateValue(params?.value); | |||||
| return DateUtils.dateStr(params?.value); | |||||
| } | } | ||||
| }, | }, | ||||
| { | { | ||||
| @@ -74,7 +74,7 @@ export default function SearchPublicNoticeTable({ recordList }) { | |||||
| width: isMdOrLg ? 'auto' : 160, | width: isMdOrLg ? 'auto' : 160, | ||||
| flex: isMdOrLg ? 1 : undefined, | flex: isMdOrLg ? 1 : undefined, | ||||
| valueGetter: (params) => { | valueGetter: (params) => { | ||||
| return DateUtils.dateValue(params?.value); | |||||
| return DateUtils.dateStr(params?.value); | |||||
| } | } | ||||
| }, | }, | ||||
| { | { | ||||
| @@ -44,17 +44,11 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria }) => { | |||||
| React.useEffect(() => { | React.useEffect(() => { | ||||
| // console.log(minDate) | // console.log(minDate) | ||||
| const dateFrom = DateUtils.dateValue(new Date().setDate(new Date().getDate()-14)) | |||||
| if (minDate != dateFrom){ | |||||
| setFromDateValue(minDate); | |||||
| } | |||||
| setFromDateValue(minDate); | |||||
| }, [minDate]); | }, [minDate]); | ||||
| React.useEffect(() => { | React.useEffect(() => { | ||||
| const dateTo = DateUtils.dateValue(new Date()) | |||||
| if (maxDate != dateTo){ | |||||
| setToDateValue(maxDate); | |||||
| } | |||||
| setToDateValue(maxDate); | |||||
| }, [maxDate]); | }, [maxDate]); | ||||
| function FormDateInputComponent({inputRef, ...props }) { | function FormDateInputComponent({inputRef, ...props }) { | ||||
| @@ -139,8 +133,6 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria }) => { | |||||
| function resetForm() { | function resetForm() { | ||||
| setMinDate(DateUtils.dateValue(new Date().setDate(new Date().getDate()-14))) | setMinDate(DateUtils.dateValue(new Date().setDate(new Date().getDate()-14))) | ||||
| setMaxDate(DateUtils.dateValue(new Date())) | setMaxDate(DateUtils.dateValue(new Date())) | ||||
| setFromDateValue("dd / mm / yyyy") | |||||
| setToDateValue("dd / mm / yyyy") | |||||
| reset(); | reset(); | ||||
| } | } | ||||
| @@ -15,8 +15,24 @@ import * as FormatUtils from "utils/FormatUtils"; | |||||
| import {PNSPS_BUTTON_THEME} from "../../../themes/buttonConst"; | import {PNSPS_BUTTON_THEME} from "../../../themes/buttonConst"; | ||||
| import {ThemeProvider} from "@emotion/react"; | import {ThemeProvider} from "@emotion/react"; | ||||
| import {FormattedMessage, useIntl} from "react-intl"; | import {FormattedMessage, useIntl} from "react-intl"; | ||||
| import { makeStyles } from '@mui/styles'; | |||||
| // ==============================|| DASHBOARD - DEFAULT ||============================== // | // ==============================|| DASHBOARD - DEFAULT ||============================== // | ||||
| const useStyles = makeStyles(() => ({ | |||||
| root: { | |||||
| position: "relative" | |||||
| }, | |||||
| display: { | |||||
| position: "absolute", | |||||
| top: 2, | |||||
| left: 12, | |||||
| bottom: 2, | |||||
| background: "white", | |||||
| pointerEvents: "none", | |||||
| right: 50, | |||||
| display: "flex", | |||||
| alignItems: "center" | |||||
| }, | |||||
| })); | |||||
| const SearchPublicNoticeForm = ({ applySearch, searchCriteria, issueComboData | const SearchPublicNoticeForm = ({ applySearch, searchCriteria, issueComboData | ||||
| }) => { | }) => { | ||||
| @@ -31,6 +47,60 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria, issueComboData | |||||
| const [minDate, setMinDate] = React.useState(searchCriteria.dateFrom); | const [minDate, setMinDate] = React.useState(searchCriteria.dateFrom); | ||||
| const [maxDate, setMaxDate] = React.useState(searchCriteria.dateTo); | const [maxDate, setMaxDate] = React.useState(searchCriteria.dateTo); | ||||
| const [fromDateValue, setFromDateValue] = React.useState("dd / mm / yyyy"); | |||||
| const [toDateValue, setToDateValue] = React.useState("dd / mm / yyyy"); | |||||
| React.useEffect(() => { | |||||
| setFromDateValue(minDate); | |||||
| }, [minDate]); | |||||
| React.useEffect(() => { | |||||
| setToDateValue(maxDate); | |||||
| }, [maxDate]); | |||||
| function FormDateInputComponent({ inputRef, ...props }) { | |||||
| const classes = useStyles(); | |||||
| return ( | |||||
| <> | |||||
| <div className={classes.display}> | |||||
| {DateUtils.dateStr(fromDateValue) == "Invalid Date" ? | |||||
| fromDateValue | |||||
| : | |||||
| DateUtils.dateStr(fromDateValue)} | |||||
| </div> | |||||
| <input | |||||
| // className={classes.input} | |||||
| ref={inputRef} | |||||
| {...props} | |||||
| // onChange={handleChange} | |||||
| value={fromDateValue} | |||||
| max={maxDate} | |||||
| /> | |||||
| </> | |||||
| ); | |||||
| } | |||||
| function ToDateInputComponent({ inputRef, ...props }) { | |||||
| const classes = useStyles(); | |||||
| return ( | |||||
| <> | |||||
| <div className={classes.display}> | |||||
| {DateUtils.dateStr(toDateValue) == "Invalid Date" ? | |||||
| toDateValue | |||||
| : | |||||
| DateUtils.dateStr(toDateValue)} | |||||
| </div> | |||||
| <input | |||||
| // className={classes.input} | |||||
| ref={inputRef} | |||||
| {...props} | |||||
| // onChange={handleChange} | |||||
| value={toDateValue} | |||||
| min={minDate} | |||||
| /> | |||||
| </> | |||||
| ); | |||||
| } | |||||
| const _sx = { | const _sx = { | ||||
| padding: "4 2 4 2", | padding: "4 2 4 2", | ||||
| @@ -50,20 +120,26 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria, issueComboData | |||||
| const { reset, register, handleSubmit } = useForm() | const { reset, register, handleSubmit } = useForm() | ||||
| const onSubmit = (data) => { | const onSubmit = (data) => { | ||||
| let typeArray = []; | let typeArray = []; | ||||
| let sentDateFrom = ""; | |||||
| let sentDateTo = ""; | |||||
| for (let i = 0; i < type.length; i++) { | for (let i = 0; i < type.length; i++) { | ||||
| typeArray.push(type[i].label); | typeArray.push(type[i].label); | ||||
| } | } | ||||
| if (fromDateValue != "dd / mm / yyyy" && toDateValue != "dd / mm / yyyy") { | |||||
| sentDateFrom = DateUtils.dateValue(fromDateValue) | |||||
| sentDateTo = DateUtils.dateValue(toDateValue) | |||||
| } | |||||
| const temp = { | const temp = { | ||||
| refNo: data.refNo, | refNo: data.refNo, | ||||
| code: data.code, | code: data.code, | ||||
| issueId: issueSelected?.id, | issueId: issueSelected?.id, | ||||
| gazettGroup: groupSelected?.type, | gazettGroup: groupSelected?.type, | ||||
| dateFrom: data.dateFrom, | |||||
| dateTo: data.dateTo, | |||||
| dateFrom: sentDateFrom, | |||||
| dateTo: sentDateTo, | |||||
| //contact: data.contact, | //contact: data.contact, | ||||
| replyed: (status?.type && status?.type != 'all') ? status?.type : "", | replyed: (status?.type && status?.type != 'all') ? status?.type : "", | ||||
| }; | }; | ||||
| @@ -82,6 +158,8 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria, issueComboData | |||||
| setStatus(ComboData.proofStatus[0]); | setStatus(ComboData.proofStatus[0]); | ||||
| setIssueSelected({}); | setIssueSelected({}); | ||||
| setGroupSelected({}); | setGroupSelected({}); | ||||
| setMinDate(DateUtils.dateValue(new Date().setDate(new Date().getDate()-14))) | |||||
| setMaxDate(DateUtils.dateValue(new Date())) | |||||
| reset(); | reset(); | ||||
| } | } | ||||
| @@ -210,9 +288,11 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria, issueComboData | |||||
| type="date" | type="date" | ||||
| label={intl.formatMessage({id: 'proofDateFrom'})} | label={intl.formatMessage({id: 'proofDateFrom'})} | ||||
| defaultValue={searchCriteria.dateFrom} | defaultValue={searchCriteria.dateFrom} | ||||
| InputProps={{ inputProps: { max: maxDate } }} | |||||
| InputProps={{ | |||||
| inputComponent: FormDateInputComponent, | |||||
| }} | |||||
| onChange={(newValue) => { | onChange={(newValue) => { | ||||
| setMinDate(DateUtils.dateValue(newValue)); | |||||
| setMinDate(newValue.target.value); | |||||
| }} | }} | ||||
| InputLabelProps={{ | InputLabelProps={{ | ||||
| shrink: true | shrink: true | ||||
| @@ -227,9 +307,11 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria, issueComboData | |||||
| shrink: true | shrink: true | ||||
| }} | }} | ||||
| {...register("dateTo")} | {...register("dateTo")} | ||||
| InputProps={{ inputProps: { min: minDate } }} | |||||
| InputProps={{ | |||||
| inputComponent: ToDateInputComponent, | |||||
| }} | |||||
| onChange={(newValue) => { | onChange={(newValue) => { | ||||
| setMaxDate(DateUtils.dateValue(newValue)); | |||||
| setMaxDate(newValue.target.value); | |||||
| }} | }} | ||||
| id="dateTo" | id="dateTo" | ||||
| type="date" | type="date" | ||||
| @@ -16,8 +16,25 @@ import { | |||||
| import {PNSPS_BUTTON_THEME} from "../../../themes/buttonConst"; | import {PNSPS_BUTTON_THEME} from "../../../themes/buttonConst"; | ||||
| import {ThemeProvider} from "@emotion/react"; | import {ThemeProvider} from "@emotion/react"; | ||||
| import {FormattedMessage, useIntl} from "react-intl"; | import {FormattedMessage, useIntl} from "react-intl"; | ||||
| // ==============================|| DASHBOARD - DEFAULT ||============================== // | |||||
| import { makeStyles } from '@mui/styles'; | |||||
| // ==============================|| DASHBOARD - DEFAULT ||============================== // | |||||
| const useStyles = makeStyles(() => ({ | |||||
| root: { | |||||
| position: "relative" | |||||
| }, | |||||
| display: { | |||||
| position: "absolute", | |||||
| top: 2, | |||||
| left: 12, | |||||
| bottom: 2, | |||||
| background: "white", | |||||
| pointerEvents: "none", | |||||
| right: 50, | |||||
| display: "flex", | |||||
| alignItems: "center" | |||||
| }, | |||||
| })); | |||||
| const SearchPublicNoticeForm = ({ applySearch, searchCriteria }) => { | const SearchPublicNoticeForm = ({ applySearch, searchCriteria }) => { | ||||
| const intl = useIntl(); | const intl = useIntl(); | ||||
| @@ -26,23 +43,84 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria }) => { | |||||
| const [minDate, setMinDate] = React.useState(searchCriteria.dateFrom); | const [minDate, setMinDate] = React.useState(searchCriteria.dateFrom); | ||||
| const [maxDate, setMaxDate] = React.useState(searchCriteria.dateTo); | const [maxDate, setMaxDate] = React.useState(searchCriteria.dateTo); | ||||
| const [fromDateValue, setFromDateValue] = React.useState("dd / mm / yyyy"); | |||||
| const [toDateValue, setToDateValue] = React.useState("dd / mm / yyyy"); | |||||
| // const [selectedLabelsString, setSelectedLabelsString] = React.useState(''); | // const [selectedLabelsString, setSelectedLabelsString] = React.useState(''); | ||||
| const { reset, register, handleSubmit } = useForm() | const { reset, register, handleSubmit } = useForm() | ||||
| const marginBottom = 2.5; | const marginBottom = 2.5; | ||||
| React.useEffect(() => { | |||||
| setFromDateValue(minDate); | |||||
| }, [minDate]); | |||||
| React.useEffect(() => { | |||||
| setToDateValue(maxDate); | |||||
| }, [maxDate]); | |||||
| function FormDateInputComponent({ inputRef, ...props }) { | |||||
| const classes = useStyles(); | |||||
| return ( | |||||
| <> | |||||
| <div className={classes.display}> | |||||
| {DateUtils.dateStr(fromDateValue) == "Invalid Date" ? | |||||
| fromDateValue | |||||
| : | |||||
| DateUtils.dateStr(fromDateValue)} | |||||
| </div> | |||||
| <input | |||||
| // className={classes.input} | |||||
| ref={inputRef} | |||||
| {...props} | |||||
| // onChange={handleChange} | |||||
| value={fromDateValue} | |||||
| max={maxDate} | |||||
| /> | |||||
| </> | |||||
| ); | |||||
| } | |||||
| function ToDateInputComponent({ inputRef, ...props }) { | |||||
| const classes = useStyles(); | |||||
| return ( | |||||
| <> | |||||
| <div className={classes.display}> | |||||
| {DateUtils.dateStr(toDateValue) == "Invalid Date" ? | |||||
| toDateValue | |||||
| : | |||||
| DateUtils.dateStr(toDateValue)} | |||||
| </div> | |||||
| <input | |||||
| // className={classes.input} | |||||
| ref={inputRef} | |||||
| {...props} | |||||
| // onChange={handleChange} | |||||
| value={toDateValue} | |||||
| min={minDate} | |||||
| /> | |||||
| </> | |||||
| ); | |||||
| } | |||||
| const onSubmit = (data) => { | const onSubmit = (data) => { | ||||
| data.status = status.type; | data.status = status.type; | ||||
| let typeArray = []; | let typeArray = []; | ||||
| let sentDateFrom = ""; | |||||
| let sentDateTo = ""; | |||||
| for (let i = 0; i < type.length; i++) { | for (let i = 0; i < type.length; i++) { | ||||
| typeArray.push(type[i].label); | typeArray.push(type[i].label); | ||||
| } | } | ||||
| if (fromDateValue != "dd / mm / yyyy" && toDateValue != "dd / mm / yyyy") { | |||||
| sentDateFrom = DateUtils.dateValue(fromDateValue) | |||||
| sentDateTo = DateUtils.dateValue(toDateValue) | |||||
| } | |||||
| const temp = { | const temp = { | ||||
| appNo: data.appNo, | appNo: data.appNo, | ||||
| dateFrom: data.dateFrom, | |||||
| dateTo: data.dateTo, | |||||
| dateFrom: sentDateFrom, | |||||
| dateTo: sentDateTo, | |||||
| contact: data.contact, | contact: data.contact, | ||||
| careOf: data.careOf?data.careOf:"", | careOf: data.careOf?data.careOf:"", | ||||
| status: (data.status === "" || data.status.includes('all')) ? "" : data.status, | status: (data.status === "" || data.status.includes('all')) ? "" : data.status, | ||||
| @@ -53,6 +131,8 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria }) => { | |||||
| function resetForm() { | function resetForm() { | ||||
| setType([]); | setType([]); | ||||
| setStatus(localStorage.getItem('userData').creditor?ComboData.publicNoticeStatic_Creditor[0]:ComboData.publicNoticeStatic[0]); | setStatus(localStorage.getItem('userData').creditor?ComboData.publicNoticeStatic_Creditor[0]:ComboData.publicNoticeStatic[0]); | ||||
| setMinDate(DateUtils.dateValue(new Date().setDate(new Date().getDate()-14))) | |||||
| setMaxDate(DateUtils.dateValue(new Date())) | |||||
| reset(); | reset(); | ||||
| } | } | ||||
| @@ -94,9 +174,11 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria }) => { | |||||
| aria-label={intl.formatMessage({id: 'submitDateFrom'})} | aria-label={intl.formatMessage({id: 'submitDateFrom'})} | ||||
| label={intl.formatMessage({id: 'submitDateFrom'})} | label={intl.formatMessage({id: 'submitDateFrom'})} | ||||
| defaultValue={searchCriteria.dateFrom} | defaultValue={searchCriteria.dateFrom} | ||||
| InputProps={{ inputProps: { max: maxDate } }} | |||||
| InputProps={{ | |||||
| inputComponent: FormDateInputComponent, | |||||
| }} | |||||
| onChange={(newValue) => { | onChange={(newValue) => { | ||||
| setMinDate(DateUtils.dateValue(newValue)); | |||||
| setMinDate(newValue.target.value); | |||||
| }} | }} | ||||
| InputLabelProps={{ | InputLabelProps={{ | ||||
| shrink: true | shrink: true | ||||
| @@ -117,9 +199,11 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria }) => { | |||||
| aria-label={intl.formatMessage({id: 'submitDateTo'})} | aria-label={intl.formatMessage({id: 'submitDateTo'})} | ||||
| label={intl.formatMessage({id: 'submitDateTo'})} | label={intl.formatMessage({id: 'submitDateTo'})} | ||||
| defaultValue={searchCriteria.dateTo} | defaultValue={searchCriteria.dateTo} | ||||
| InputProps={{ inputProps: { min: minDate } }} | |||||
| InputProps={{ | |||||
| inputComponent: ToDateInputComponent, | |||||
| }} | |||||
| onChange={(newValue) => { | onChange={(newValue) => { | ||||
| setMaxDate(DateUtils.dateValue(newValue)); | |||||
| setMaxDate(newValue.target.value); | |||||
| }} | }} | ||||
| /> | /> | ||||
| </Grid> | </Grid> | ||||
| @@ -302,6 +302,7 @@ const Index = () => { | |||||
| <Grid item xs={12} md={12} lg={12}> | <Grid item xs={12} md={12} lg={12}> | ||||
| <TextField | <TextField | ||||
| fullWidth | fullWidth | ||||
| autoFocus | |||||
| onChange={(e) => { | onChange={(e) => { | ||||
| formik.handleChange(e); | formik.handleChange(e); | ||||
| changePassword(e.target.value); | changePassword(e.target.value); | ||||
| @@ -148,6 +148,7 @@ const ForgotPasswordApplyForm = () => { | |||||
| value={formik.values.username} | value={formik.values.username} | ||||
| error={Boolean(formik.touched.username && formik.errors.username)} | error={Boolean(formik.touched.username && formik.errors.username)} | ||||
| onBlur={formik.handleBlur} | onBlur={formik.handleBlur} | ||||
| autoFocus | |||||
| inputProps={{ | inputProps={{ | ||||
| maxLength: 50, | maxLength: 50, | ||||
| onKeyDown: (e) => { | onKeyDown: (e) => { | ||||
| @@ -309,6 +309,7 @@ const Index = () => { | |||||
| <Grid item xs={12} md={12} lg={12}> | <Grid item xs={12} md={12} lg={12}> | ||||
| <TextField | <TextField | ||||
| fullWidth | fullWidth | ||||
| autoFocus | |||||
| onChange={(e) => { | onChange={(e) => { | ||||
| formik.handleChange(e); | formik.handleChange(e); | ||||
| changePassword(e.target.value); | changePassword(e.target.value); | ||||
| @@ -141,6 +141,7 @@ const ForgotUsernameApplyForm = () => { | |||||
| <Grid item xs={12} md={12} lg={12} sx={{ mb: 3}} > | <Grid item xs={12} md={12} lg={12} sx={{ mb: 3}} > | ||||
| <TextField | <TextField | ||||
| fullWidth | fullWidth | ||||
| autoFocus | |||||
| onChange={formik.handleChange} | onChange={formik.handleChange} | ||||
| id="emailAddress" | id="emailAddress" | ||||
| name="emailAddress" | name="emailAddress" | ||||
| @@ -274,6 +274,7 @@ const AuthLoginCustom = () => { | |||||
| onChange={formik.handleChange} | onChange={formik.handleChange} | ||||
| placeholder="" | placeholder="" | ||||
| fullWidth | fullWidth | ||||
| autoFocus | |||||
| value={formik.values.username} | value={formik.values.username} | ||||
| error={Boolean(formik.touched.username && formik.errors.username)} | error={Boolean(formik.touched.username && formik.errors.username)} | ||||
| onBlur={formik.handleBlur} | onBlur={formik.handleBlur} | ||||
| @@ -624,6 +624,7 @@ const BusCustomFormWizard = (props) => { | |||||
| }} | }} | ||||
| placeholder={intl.formatMessage({id: 'userLoginName'})} | placeholder={intl.formatMessage({id: 'userLoginName'})} | ||||
| fullWidth | fullWidth | ||||
| autoFocus | |||||
| error={Boolean((formik.touched.username && formik.errors.username) || checkUsername)} | error={Boolean((formik.touched.username && formik.errors.username) || checkUsername)} | ||||
| onBlur={formik.handleBlur} | onBlur={formik.handleBlur} | ||||
| inputProps={{ | inputProps={{ | ||||
| @@ -722,6 +722,7 @@ const CustomFormWizard = (props) => { | |||||
| }} | }} | ||||
| placeholder={intl.formatMessage({ id: 'userLoginName' })} | placeholder={intl.formatMessage({ id: 'userLoginName' })} | ||||
| fullWidth | fullWidth | ||||
| autoFocus | |||||
| error={Boolean((formik.touched.username && formik.errors.username) || checkUsername)} | error={Boolean((formik.touched.username && formik.errors.username) || checkUsername)} | ||||
| onBlur={formik.handleBlur} | onBlur={formik.handleBlur} | ||||
| inputProps={{ | inputProps={{ | ||||
| @@ -463,6 +463,7 @@ const CustomFormWizard = (props) => { | |||||
| </InputLabel> | </InputLabel> | ||||
| <OutlinedInput | <OutlinedInput | ||||
| fullWidth | fullWidth | ||||
| autoFocus | |||||
| error={Boolean(formik.touched.address1 && formik.errors.address1)} | error={Boolean(formik.touched.address1 && formik.errors.address1)} | ||||
| id="address1-signup" | id="address1-signup" | ||||
| value={formik.values.address1} | value={formik.values.address1} | ||||
| @@ -31,7 +31,7 @@ export const getTextField = ({ label, valueName, form, disabled }) => { | |||||
| <Grid item xs={12} sm={12} md={12} lg={12}> | <Grid item xs={12} sm={12} md={12} lg={12}> | ||||
| <Grid container> | <Grid container> | ||||
| <Grid item xs={12} sm={12} md={3} lg={3} | <Grid item xs={12} sm={12} md={3} lg={3} | ||||
| sx={{ display: 'flex', alignItems: 'center' }} mb={2} > | |||||
| sx={{ display: 'flex', alignItems: 'center' }} > | |||||
| <Typography variant="pnspsFormParagraphBold">{label}</Typography> | <Typography variant="pnspsFormParagraphBold">{label}</Typography> | ||||
| </Grid> | </Grid> | ||||
| <Grid item xs={12} sm={12} md={6} lg={6}> | <Grid item xs={12} sm={12} md={6} lg={6}> | ||||
| @@ -49,7 +49,7 @@ export const getTextField = ({ label, valueName, form, disabled }) => { | |||||
| export const getTextArea = ({ label, valueName, form, disabled, inputProps, ...props }) => { | export const getTextArea = ({ label, valueName, form, disabled, inputProps, ...props }) => { | ||||
| return <Grid container alignItems={"center"}> | return <Grid container alignItems={"center"}> | ||||
| <Grid item xs={12} md={3} lg={3} mb={2} | |||||
| <Grid item xs={12} md={3} lg={3} | |||||
| sx={{ display: 'flex', alignItems: 'center' }}> | sx={{ display: 'flex', alignItems: 'center' }}> | ||||
| <Typography variant="pnspsFormParagraphBold">{label}</Typography> | <Typography variant="pnspsFormParagraphBold">{label}</Typography> | ||||
| </Grid> | </Grid> | ||||
| @@ -77,7 +77,7 @@ export const getTextArea = ({ label, valueName, form, disabled, inputProps, ...p | |||||
| export const getPhoneField = ({ label, valueName, form, disabled }) => { | export const getPhoneField = ({ label, valueName, form, disabled }) => { | ||||
| return <Grid container alignItems={"center"} sx={{mb:2}}> | return <Grid container alignItems={"center"} sx={{mb:2}}> | ||||
| <Grid item xs={12} md={3} lg={3} mb={2} | |||||
| <Grid item xs={12} md={3} lg={3} | |||||
| sx={{ display: 'flex', alignItems: 'center' }}> | sx={{ display: 'flex', alignItems: 'center' }}> | ||||
| <Typography variant="pnspsFormParagraphBold">{label}</Typography> | <Typography variant="pnspsFormParagraphBold">{label}</Typography> | ||||
| </Grid> | </Grid> | ||||
| @@ -122,7 +122,7 @@ export const getPhoneField = ({ label, valueName, form, disabled }) => { | |||||
| export const getAddressField = ({ label, valueName, form, disabled }) => { | export const getAddressField = ({ label, valueName, form, disabled }) => { | ||||
| return <Grid container alignItems={"top"}> | return <Grid container alignItems={"top"}> | ||||
| <Grid item xs={12} md={3} lg={3} sx={{ display: 'flex', alignItems: 'top' }}> | |||||
| <Grid item xs={12} md={3} lg={3} mt={1} sx={{ display: 'flex', alignItems: 'top' }}> | |||||
| <Grid item lg={12} sx={{ alignItems: 'center' }}> | <Grid item lg={12} sx={{ alignItems: 'center' }}> | ||||
| <Typography variant="pnspsFormParagraphBold">{label}</Typography> | <Typography variant="pnspsFormParagraphBold">{label}</Typography> | ||||
| </Grid> | </Grid> | ||||