Browse Source

update layout and logout i18n

master
jason.lam 1 year ago
parent
commit
3378a60a89
4 changed files with 10 additions and 4 deletions
  1. +6
    -4
      src/layout/MainLayout/Header/index.js
  2. +2
    -0
      src/translations/en.json
  3. +1
    -0
      src/translations/zh-CN.json
  4. +1
    -0
      src/translations/zh-HK.json

+ 6
- 4
src/layout/MainLayout/Header/index.js View File

@@ -194,7 +194,7 @@ function Header(props) {
</Typography> </Typography>
<KeyboardArrowDownIcon sx={{ fontSize: '1.0rem' }} /> <KeyboardArrowDownIcon sx={{ fontSize: '1.0rem' }} />
</Link> </Link>
<ul className='dropdown'>
<ul className='dropdown' style={{ width: "max-content" }}>
<li> <li>
<Link className="manageOrgUser" to='setting/manageUser'> <Link className="manageOrgUser" to='setting/manageUser'>
<Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2 }}> <Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2 }}>
@@ -212,7 +212,7 @@ function Header(props) {
<FormattedMessage id="setting" /> <FormattedMessage id="setting" />
</Typography> </Typography>
</Link> </Link>
<ul className='dropdown'>
<ul className='dropdown' style={{ width: "max-content" }}>
<li> <li>
<Link className="manageUser" to={'/indUser/'+getUserId()}> <Link className="manageUser" to={'/indUser/'+getUserId()}>
<Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2 }}> <Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2 }}>
@@ -229,7 +229,7 @@ function Header(props) {
<FormattedMessage id="setting" /> <FormattedMessage id="setting" />
</Typography> </Typography>
</Link> </Link>
<ul className='dropdown'>
<ul className='dropdown' style={{ width: "max-content" }}>
<li> <li>
<Link className="manageUser" to={'/orgUser/'+getUserId()}> <Link className="manageUser" to={'/orgUser/'+getUserId()}>
<Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2 }}> <Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2 }}>
@@ -279,7 +279,9 @@ function Header(props) {
<Divider /> <Divider />
<ul id="sidebarbottom"> <ul id="sidebarbottom">
<li> <li>
<Link className="logout" onClick={handleLogout}>登出</Link>
<Link className="logout" onClick={handleLogout}>
<FormattedMessage id="logout" />
</Link>
</li> </li>
</ul> </ul>
</Stack> </Stack>


+ 2
- 0
src/translations/en.json View File

@@ -58,6 +58,8 @@
"welcomeMsg": "Good afternoon! Please select the required service.", "welcomeMsg": "Good afternoon! Please select the required service.",


"login": "Login", "login": "Login",
"logout": "Logout",

"iAmSmartLogin": "iAM Smart Login", "iAmSmartLogin": "iAM Smart Login",
"continueWithIAmSmart": "Continue with iAmSmart", "continueWithIAmSmart": "Continue with iAmSmart",
"authorizeIAmSmartForInfo": "Authorize iAmSmart to provide personal information", "authorizeIAmSmartForInfo": "Authorize iAmSmart to provide personal information",


+ 1
- 0
src/translations/zh-CN.json View File

@@ -58,6 +58,7 @@
"welcomeMsg": "午安! 请选择所需服务。", "welcomeMsg": "午安! 请选择所需服务。",


"login": "登录", "login": "登录",
"logout": "登出",
"iAmSmartLogin": "智方便登录", "iAmSmartLogin": "智方便登录",
"continueWithIAmSmart": "以「智方便」继续", "continueWithIAmSmart": "以「智方便」继续",
"authorizeIAmSmartForInfo": "授权「智方便」提供个人资料", "authorizeIAmSmartForInfo": "授权「智方便」提供个人资料",


+ 1
- 0
src/translations/zh-HK.json View File

@@ -58,6 +58,7 @@
"welcomeMsg": "午安! 請選擇所需服務。", "welcomeMsg": "午安! 請選擇所需服務。",


"login": "登入", "login": "登入",
"logout": "登出",
"iAmSmartLogin": "智方便登入", "iAmSmartLogin": "智方便登入",
"continueWithIAmSmart": "以「智方便」繼續", "continueWithIAmSmart": "以「智方便」繼續",
"authorizeIAmSmartForInfo": "授權「智方便」提供個人資料", "authorizeIAmSmartForInfo": "授權「智方便」提供個人資料",


Loading…
Cancel
Save