diff --git a/src/pages/Proof/Search_Public/DataGrid.js b/src/pages/Proof/Search_Public/DataGrid.js index 4b55204..22a2835 100644 --- a/src/pages/Proof/Search_Public/DataGrid.js +++ b/src/pages/Proof/Search_Public/DataGrid.js @@ -155,7 +155,7 @@ export default function SearchPublicNoticeTable({ searchCriteria }) { width: isMdOrLg ? 'auto' : 160, flex: isMdOrLg ? 1 : undefined, renderCell: (params) => { - return locale === 'en' ? ProofStatus.getStatus_Eng(params) : ProofStatus.getStatus_Cht(params); + return locale === 'en' ? ProofStatus.getStatus_Eng(params) : locale === 'zh-HK' ?ProofStatus.getStatus_Cht(params):ProofStatus.getStatus_Cn(params); }, }, { diff --git a/src/pages/authentication/BusRegister.js b/src/pages/authentication/BusRegister.js index 0be43a0..cd30c5e 100644 --- a/src/pages/authentication/BusRegister.js +++ b/src/pages/authentication/BusRegister.js @@ -22,7 +22,6 @@ const CustomFormWizard = Loadable(lazy(() => import('./auth-forms/BusCustomFormW const AuthWrapper = Loadable(lazy(() => import('./AuthWrapperCustom'))); import axios from "axios"; import { GET_USERNAME, POST_VERIFY_CAPTCHA } from "utils/ApiPathConst"; -import {useTheme} from "@emotion/react"; import {FormattedMessage, useIntl} from "react-intl"; // import CustomFormWizard from './auth-forms/BusCustomFormWizard'; // import AuthWrapper from './AuthWrapperCustom'; @@ -35,7 +34,6 @@ const BusRegister = () => { const [username, setUsername] = useState("") const [base64Url, setBase64Url] = useState("") const [checkCode, setCheckCode] = useState("") - const theme = useTheme(); const intl = useIntl(); const steps = [ intl.formatMessage({id: 'personalInformation'}), @@ -44,15 +42,7 @@ const BusRegister = () => { ]; const stepStyle = { - [theme.breakpoints.up('lg')]: { - width: '40%', - }, - [theme.breakpoints.up('md')]: { - width: '70%', - }, - [theme.breakpoints.up('xs')]: { - width: '95%', - }, + width: {lg:"40%", md:"70%", xs:"100%"}, boxShadow: 1, backgroundColor: "#FFFFFF", padding: 2, diff --git a/src/pages/authentication/IAmSmartRegister.js b/src/pages/authentication/IAmSmartRegister.js index afb1a41..3342087 100644 --- a/src/pages/authentication/IAmSmartRegister.js +++ b/src/pages/authentication/IAmSmartRegister.js @@ -27,7 +27,7 @@ const CustomFormWizard = Loadable(lazy(() => import('./auth-forms/IAmSmartFormWi const AuthWrapper = Loadable(lazy(() => import('./AuthWrapperCustom'))); // ================================|| REGISTER ||================================ // const stepStyle = { - width: "40%", + width: {lg:"40%", md:"70%", xs:"100%"}, boxShadow: 1, backgroundColor: "#FFFFFF", padding: 2, @@ -173,9 +173,10 @@ const Register = () => { ) : ( - - + + import('./auth-forms/CustomFormWizard'))); const AuthWrapper = Loadable(lazy(() => import('./AuthWrapperCustom'))); @@ -35,7 +34,6 @@ const Register = () => { const [username, setUsername] = useState(""); const [base64Url, setBase64Url] = useState("") const [checkCode, setCheckCode] = useState("") - const theme = useTheme(); const intl = useIntl(); const steps = [ intl.formatMessage({id: 'personalInformation'}), @@ -44,15 +42,7 @@ const Register = () => { ]; const stepStyle = { - [theme.breakpoints.up('lg')]: { - width: '40%', - }, - [theme.breakpoints.up('md')]: { - width: '70%', - }, - [theme.breakpoints.up('xs')]: { - width: '95%', - }, + width: {lg:"40%", md:"70%", xs:"100%"}, boxShadow: 1, backgroundColor: "#FFFFFF", padding: 2, diff --git a/src/pages/authentication/auth-forms/BusCustomFormWizard.js b/src/pages/authentication/auth-forms/BusCustomFormWizard.js index 8450107..707c8a9 100644 --- a/src/pages/authentication/auth-forms/BusCustomFormWizard.js +++ b/src/pages/authentication/auth-forms/BusCustomFormWizard.js @@ -1402,7 +1402,7 @@ const BusCustomFormWizard = (props) => { - + { - + { {iAmSmartData.address1 != "" && iAmSmartData.address1 == formik.values.address1 ? iAM Smart : null} - + { - + { {formik.errors.address3} )} -{/* + {/* {districtErrStr != "" && ( {districtErrStr} @@ -655,27 +655,32 @@ const CustomFormWizard = (props) => { * - {iAmSmartData.email && iAmSmartData.email == formik.values.email ? iAM Smart : null} + - { - if (e.key === 'Enter') { - e.preventDefault(); - } - }, - }} - /> + + + { + if (e.key === 'Enter') { + e.preventDefault(); + } + }, + }} + /> + {iAmSmartData.email && iAmSmartData.email == formik.values.email ? iAM Smart : null} + + {formik.touched.email && formik.errors.email && ( {formik.errors.email} @@ -696,28 +701,32 @@ const CustomFormWizard = (props) => { * - { - if (e.key === 'Enter') { - e.preventDefault(); - } - }, - }} - /> + + { + if (e.key === 'Enter') { + e.preventDefault(); + } + }, + }} + /> + {iAmSmartData.email && iAmSmartData.email == formik.values.emailConfirm ? iAM Smart : null} + + {formik.touched.emailConfirm && formik.errors.emailConfirm && ( {formik.errors.emailConfirm} @@ -737,10 +746,10 @@ const CustomFormWizard = (props) => { * - {iAmSmartData.phone && iAmSmartData.phone == formik.values.phone && iAmSmartData.phoneCountryCode == formik.values.phoneCountryCode ? iAM Smart : null} + - + { } }, }} - sx={{ width: '75%' }} + fullWidth /> + {iAmSmartData.phone && iAmSmartData.phone == formik.values.phone && iAmSmartData.phoneCountryCode == formik.values.phoneCountryCode ? iAM Smart : null} {formik.touched.phone && formik.errors.phone && ( @@ -814,7 +824,7 @@ const CustomFormWizard = (props) => { - + { - + { name="termsAndConNotAccept" color="primary" size="small" + /> diff --git a/src/translations/en.json b/src/translations/en.json index f657b68..9eb22b2 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -552,6 +552,11 @@ "subject": "Subject", "other":"Other", + "proofConfirmed":"Confirmed", + "proofReProofing":"Re-proofing", + "proofNoReply":"No Reply", + "proofPendingReply":"Pending Reply", + "Dashboard": "Dashboard", "event": "Event" } \ No newline at end of file diff --git a/src/translations/zh-CN.json b/src/translations/zh-CN.json index c94f417..a3d635a 100644 --- a/src/translations/zh-CN.json +++ b/src/translations/zh-CN.json @@ -543,6 +543,11 @@ "subject": "主题", "other":"其他", + "proofConfirmed":"可以付印", + "proofReProofing":"未能付印", + "proofNoReply":"回复逾时", + "proofPendingReply":"未回复", + "Dashboard": "仪表板", "event": "活动" } \ No newline at end of file diff --git a/src/translations/zh-HK.json b/src/translations/zh-HK.json index c79e928..906beed 100644 --- a/src/translations/zh-HK.json +++ b/src/translations/zh-HK.json @@ -548,6 +548,11 @@ "subject": "主題", "other":"其他", + "proofConfirmed":"可以付印", + "proofReProofing":"未能付印", + "proofNoReply":"回覆逾時", + "proofPendingReply":"未回覆", + "Dashboard": "儀表板", "event": "活動" } \ No newline at end of file diff --git a/src/utils/ComboData.js b/src/utils/ComboData.js index 7af8cb4..fab2c1e 100644 --- a/src/utils/ComboData.js +++ b/src/utils/ComboData.js @@ -112,10 +112,10 @@ export const proofStatus = [ export const proofStatusFull = [ { key: 0, i18nLabel: 'all', labelCht: '全部', label: 'All', type: 'all' }, - { key: 1, i18nLabel: 'Confirmed', labelCht: '可以付印', label:'Confirmed', type: 'Confirmed' }, - { key: 2, i18nLabel: 'Re-proofing', labelCht: '未能付印', label:'Re-proofing', type: 'Re-proofing' }, // submitted and reviewed - { key: 3, i18nLabel: 'No Reply', labelCht: '回覆逾時', label:'No Reply', type: 'No Reply' }, - { key: 4, i18nLabel: 'Pending Reply', labelCht: '未回覆', label:'Pending Reply', type: 'Pending Reply' }, + { key: 1, i18nLabel: 'proofConfirmed', labelCht: '可以付印', label:'Confirmed', type: 'Confirmed' }, + { key: 2, i18nLabel: 'proofReProofing', labelCht: '未能付印', label:'Re-proofing', type: 'Re-proofing' }, // submitted and reviewed + { key: 3, i18nLabel: 'proofNoReply', labelCht: '回覆逾時', label:'No Reply', type: 'No Reply' }, + { key: 4, i18nLabel: 'proofPendingReply', labelCht: '未回覆', label:'Pending Reply', type: 'Pending Reply' }, //{ key: 5, i18nLabel: 'Cancelled', labelCht: '已取消', label:'Cancelled', type: 'Cancelled' }, ]; diff --git a/src/utils/statusUtils/ProofStatus.js b/src/utils/statusUtils/ProofStatus.js index 1cdde36..e7e6831 100644 --- a/src/utils/statusUtils/ProofStatus.js +++ b/src/utils/statusUtils/ProofStatus.js @@ -1,11 +1,11 @@ import {getStatusTag} from "utils/statusUtils/Base"; import * as DateUtils from "utils/DateUtils"; -const confirm = {color:"#22a13f", eng:"Confirmed", cht:"可以付印"} -const unable = {color:"#d9372b", eng:"Re-proofing", cht:"未能付印"} -const timeOut = {color:"#8a8784", eng:"No Reply", cht:"回覆逾時"} -const pendingReply = {color:"#f5a83d", eng:"Pending Reply", cht:"未回覆"} -const cancel = {color:"#000", textColor:"#fff", eng:"Cancelled", cht:"已取消"} +const confirm = {color:"#22a13f", eng:"Confirmed", cht:"可以付印", cn:"可以付印"} +const unable = {color:"#d9372b", eng:"Re-proofing", cht:"未能付印", cn:"未能付印"} +const timeOut = {color:"#8a8784", eng:"No Reply", cht:"回覆逾時", cn:"回复逾时"} +const pendingReply = {color:"#f5a83d", eng:"Pending Reply", cht:"未回覆", cn:"未回复"} +const cancel = {color:"#000", textColor:"#fff", eng:"Cancelled", cht:"已取消", cn:"已取消"} export function getStatus_Cht(params) { let status = getStatus(params); @@ -17,6 +17,12 @@ export function getStatus_Eng(params) { return getStatusTag({color: status.color, textColor:status.textColor, text:status.eng }) } +export function getStatus_Cn(params) { + let status = getStatus(params); + return getStatusTag({color: status.color, textColor:status.textColor, text:status.cn }) +} + + export function getStatusText_Cht(params) { let status = getStatus(params); return {text:status.cht,status:status.eng}