diff --git a/src/pages/iAmSmart/AuthCallback/index.js b/src/pages/iAmSmart/AuthCallback/index.js
index 9aefca1..57f8b16 100644
--- a/src/pages/iAmSmart/AuthCallback/index.js
+++ b/src/pages/iAmSmart/AuthCallback/index.js
@@ -70,7 +70,12 @@ const Index = () => {
// }
// }
dispatch(handleLogin(data))
- navigate('/iamsmart/loginSucess', {state:{loginMethod:"iAmSmart"}});
+ navigate('/iamsmart/loginSucess', {
+ state: {
+ loginMethod: 'iAmSmart',
+ iAmSmartNewlyLinked: responseData.iAmSmartNewlyLinked === true,
+ },
+ });
},
onFail: (response)=>{
console.log("onFail");
diff --git a/src/pages/iAmSmart/SuccessCallback/index.js b/src/pages/iAmSmart/SuccessCallback/index.js
index 19172cb..6db1485 100644
--- a/src/pages/iAmSmart/SuccessCallback/index.js
+++ b/src/pages/iAmSmart/SuccessCallback/index.js
@@ -31,6 +31,7 @@ const Index = () => {
const location = useLocation();
const navigate = useNavigate()
const [onReady, setOnReady] = React.useState(false);
+ const showAccountLinkUpMessages = location?.state?.iAmSmartNewlyLinked === true;
React.useEffect(() => {
if ("iAmSmart" == location?.state?.loginMethod) {
@@ -54,7 +55,7 @@ const Index = () => {
-
+
@@ -64,11 +65,13 @@ const Index = () => {
+ {showAccountLinkUpMessages ? (
+ ) : null}
diff --git a/src/translations/en.json b/src/translations/en.json
index 6f14a44..2f1954a 100644
--- a/src/translations/en.json
+++ b/src/translations/en.json
@@ -192,6 +192,7 @@
"loginSuccessMessage1":"User account link up success",
"loginSuccessMessage2":"You are our existing user and successfully linked your existing account.
From now on, you can log in through \"iAM Smart\".",
"loginSuccessMessage3":"Continue to use e-Service",
+ "iAmSmartLoginSuccessHeading":"Logged in with iAM Smart successfully.",
"oldPassword": "Old Password",
"newPassword": "New Password",
diff --git a/src/translations/zh-CN.json b/src/translations/zh-CN.json
index b834b09..90b4029 100644
--- a/src/translations/zh-CN.json
+++ b/src/translations/zh-CN.json
@@ -228,6 +228,7 @@
"loginSuccessMessage1":"成功连结现有帐户",
"loginSuccessMessage2":"你是我们的现有客户,已成功连结现有帐户。
以后可以透过「智方便」登入。",
"loginSuccessMessage3":"继续使用e-Service",
+ "iAmSmartLoginSuccessHeading":"已成功以「智方便」登录。",
"oldPassword": "旧密码",
"newPassword": "新密码",
diff --git a/src/translations/zh-HK.json b/src/translations/zh-HK.json
index 0be353a..2686bd4 100644
--- a/src/translations/zh-HK.json
+++ b/src/translations/zh-HK.json
@@ -229,6 +229,7 @@
"loginSuccessMessage1":"成功連結現有帳戶",
"loginSuccessMessage2":"你是我們的現有客戶,已成功連結現有帳戶。
以後可以透過「智方便」登入。",
"loginSuccessMessage3":"繼續使用e-Service",
+ "iAmSmartLoginSuccessHeading":"已成功以「智方便」登入。",
"oldPassword": "舊密碼",
"newPassword": "新密碼",