Jason Chuang 2 недель назад
Родитель
Сommit
572762b31c
4 измененных файлов: 6 добавлений и 2 удалений
  1. +3
    -2
      src/components/iAmSmartButton.js
  2. +1
    -0
      src/translations/en.json
  3. +1
    -0
      src/translations/zh-CN.json
  4. +1
    -0
      src/translations/zh-HK.json

+ 3
- 2
src/components/iAmSmartButton.js Просмотреть файл

@@ -1,5 +1,6 @@
// material-ui
import {useState, useEffect} from 'react';
import { useIntl } from 'react-intl';
import iAmSmartICon from 'assets/images/icons/icon_iAmSmart.png';
import {
Button,
@@ -9,7 +10,7 @@ import {
// ==============================|| EVENT TABLE ||============================== //

export function IAmSmartButton({ label, onClickFun, fullWidth }) {
const intl = useIntl();
const [_label, set_label] = useState("");
useEffect(()=>{
@@ -23,7 +24,7 @@ export function IAmSmartButton({ label, onClickFun, fullWidth }) {
}

return (
<Button onClick={()=>doOnClick()} sx={{textTransform: 'none'}} color="iAmSmart" fullWidth={fullWidth} size="large" variant="outlined" startIcon={<img src={iAmSmartICon} alt="iAM Smart" width="30" />}>
<Button onClick={()=>doOnClick()} sx={{textTransform: 'none'}} color="iAmSmart" fullWidth={fullWidth} size="large" variant="outlined" startIcon={<img src={iAmSmartICon} alt={intl.formatMessage({ id: 'iAmSmartAlt' })} width="30" />}>
<Typography variant="h5">
{_label}
</Typography>


+ 1
- 0
src/translations/en.json Просмотреть файл

@@ -13,6 +13,7 @@
"openLanguage": "Language Menu",

"bhkLogoAlt": "Brand Hong Kong logo",
"iAmSmartAlt": "iAM Smart",
"wcagAaAlt": "Level AA conformance, W3C WAI Web Content Accessibility Guidelines 2.0",
"downloadPdfAria": "Download PDF: {guide} ({userType})",
"captchaPlayAudio": "Play audio CAPTCHA",


+ 1
- 0
src/translations/zh-CN.json Просмотреть файл

@@ -13,6 +13,7 @@
"openLanguage": "语言选单",

"bhkLogoAlt": "香港品牌标志",
"iAmSmartAlt": "智方便",
"wcagAaAlt": "符合 WCAG 2.0 AA 级别(W3C WAI 网页内容无障碍指引)",
"downloadPdfAria": "下载 PDF:{guide}({userType})",
"captchaPlayAudio": "播放语音验证码",


+ 1
- 0
src/translations/zh-HK.json Просмотреть файл

@@ -13,6 +13,7 @@
"openLanguage": "語言選單",

"bhkLogoAlt": "香港品牌標誌",
"iAmSmartAlt": "智方便",
"wcagAaAlt": "符合 WCAG 2.0 AA 級別(W3C WAI 網頁內容無障礙指引)",
"downloadPdfAria": "下載 PDF:{guide}({userType})",
"captchaPlayAudio": "播放語音驗證碼",


Загрузка…
Отмена
Сохранить