From 97bc5176d9d7c2b988eb8fdb8c462b96cf876105 Mon Sep 17 00:00:00 2001 From: "jason.lam" Date: Tue, 23 Jan 2024 11:42:45 +0800 Subject: [PATCH] update register combo bug and i18n --- src/components/FiDataGrid.js | 1 + src/pages/authentication/Verify.js | 4 ++-- .../auth-forms/BusCustomFormWizard.js | 13 ++++++++----- .../authentication/auth-forms/CustomFormWizard.js | 8 +++++--- .../authentication/auth-forms/IAmSmartFormWizard.js | 8 +++++--- src/translations/en.json | 1 + src/translations/zh-CN.json | 1 + src/translations/zh-HK.json | 1 + 8 files changed, 24 insertions(+), 13 deletions(-) diff --git a/src/components/FiDataGrid.js b/src/components/FiDataGrid.js index 76a4ee2..9790a06 100644 --- a/src/components/FiDataGrid.js +++ b/src/components/FiDataGrid.js @@ -122,6 +122,7 @@ export function FiDataGrid({ rows, columns, sx, autoHeight, {...props} rows={_rows} columns={_columns} + disableColumnMenu rowModesModel={_rowModesModel} pageSizeOptions={_pageSizeOptions} editMode={_editMode} diff --git a/src/pages/authentication/Verify.js b/src/pages/authentication/Verify.js index 4fa15ac..c337f0a 100644 --- a/src/pages/authentication/Verify.js +++ b/src/pages/authentication/Verify.js @@ -63,7 +63,7 @@ export default function Verify() { 帳戶已成功驗證。 - @@ -73,7 +73,7 @@ export default function Verify() { {/* */} 驗證失敗,請聯絡相關的系統管理員協助。 - diff --git a/src/pages/authentication/auth-forms/BusCustomFormWizard.js b/src/pages/authentication/auth-forms/BusCustomFormWizard.js index a1519a3..641b9ec 100644 --- a/src/pages/authentication/auth-forms/BusCustomFormWizard.js +++ b/src/pages/authentication/auth-forms/BusCustomFormWizard.js @@ -323,8 +323,8 @@ const BusCustomFormWizard = (props) => { const { handleSubmit } = useForm({}) const _onSubmit = () => { setLoding(true); - values.address4 = selectedAddress4 - values.address5 = selectedAddress5 + values.address4 = selectedAddress4.key + values.address5 = selectedAddress5.key // console.log(values) const busUserAddress = { "addressLine1": "", @@ -1637,7 +1637,8 @@ const BusCustomFormWizard = (props) => { - @@ -1646,8 +1647,10 @@ const BusCustomFormWizard = (props) => { {/* */} - 申請失敗,請稍後嘗試 - diff --git a/src/pages/authentication/auth-forms/CustomFormWizard.js b/src/pages/authentication/auth-forms/CustomFormWizard.js index 99fabad..2d8604a 100644 --- a/src/pages/authentication/auth-forms/CustomFormWizard.js +++ b/src/pages/authentication/auth-forms/CustomFormWizard.js @@ -1801,7 +1801,7 @@ const CustomFormWizard = (props) => { - @@ -1810,8 +1810,10 @@ const CustomFormWizard = (props) => { {/* */} - 申請失敗,請稍後嘗試 - diff --git a/src/pages/authentication/auth-forms/IAmSmartFormWizard.js b/src/pages/authentication/auth-forms/IAmSmartFormWizard.js index 4b36712..ad0f14e 100644 --- a/src/pages/authentication/auth-forms/IAmSmartFormWizard.js +++ b/src/pages/authentication/auth-forms/IAmSmartFormWizard.js @@ -1041,7 +1041,7 @@ const CustomFormWizard = (props) => { - @@ -1050,8 +1050,10 @@ const CustomFormWizard = (props) => { {/* */} - 申請失敗,請稍後嘗試 - diff --git a/src/translations/en.json b/src/translations/en.json index dd03623..b94ee1e 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -39,6 +39,7 @@ "submit": "Submit", "backToLogin": "Return to login page", "registerSubmitted": "Account application submitted successfully.", + "registerFail": "Application failed, please try again later", "mainPage": "Main Page", "myPublicNotice": "My Public Notice", diff --git a/src/translations/zh-CN.json b/src/translations/zh-CN.json index 097dd86..0d73153 100644 --- a/src/translations/zh-CN.json +++ b/src/translations/zh-CN.json @@ -39,6 +39,7 @@ "submit": "提交", "backToLogin": "返回登入页面", "registerSubmitted": "帐户申请已成功提交。", + "registerFail": "申请失败,请稍后尝试", "mainPage": "主页", "myPublicNotice": "我的公共启事", diff --git a/src/translations/zh-HK.json b/src/translations/zh-HK.json index af772a6..0fd2cf7 100644 --- a/src/translations/zh-HK.json +++ b/src/translations/zh-HK.json @@ -39,6 +39,7 @@ "submit": "提交", "backToLogin": "返回登入頁面", "registerSubmitted": "帳戶申請已成功提交。", + "registerFail": "申請失敗,請稍後嘗試", "mainPage": "主頁", "myPublicNotice": "我的公共啟事",