瀏覽代碼

update loading component

master
jason.lam 1 年之前
父節點
當前提交
08e350db82
共有 4 個文件被更改,包括 12 次插入2 次删除
  1. +9
    -2
      src/pages/extra-pages/LoadingComponent.js
  2. +1
    -0
      src/translations/en.json
  3. +1
    -0
      src/translations/zh-CN.json
  4. +1
    -0
      src/translations/zh-HK.json

+ 9
- 2
src/pages/extra-pages/LoadingComponent.js 查看文件

@@ -1,4 +1,5 @@
import {Box, CircularProgress, Grid} from "@mui/material";
import {Box, CircularProgress, Grid, Typography} from "@mui/material";
import {FormattedMessage} from "react-intl";

const LoadingComponent = () => {
return (
@@ -9,7 +10,13 @@ const LoadingComponent = () => {
alignItems="center"
// autoHeight={true}
>
<CircularProgress />
<Grid container direction="column" alignItems="center">
<CircularProgress/>
<Typography variant="h5">
<FormattedMessage id="loading" />
</Typography>
</Grid>

</Box>
</Grid>
)


+ 1
- 0
src/translations/en.json 查看文件

@@ -360,6 +360,7 @@
"dateFrom": "Date(From)",
"dateTo": "Date(To)",
"of": "of",
"loading": "Loading...",

"Dashboard": "Dashboard",
"event": "Event"

+ 1
- 0
src/translations/zh-CN.json 查看文件

@@ -360,6 +360,7 @@
"dateFrom": "日期(从)",
"dateTo": "日期(到)",
"of": "於",
"loading": "加载中...",

"Dashboard": "仪表板",
"event": "活动"

+ 1
- 0
src/translations/zh-HK.json 查看文件

@@ -360,6 +360,7 @@
"dateFrom": "日期(從)",
"dateTo": "日期(到)",
"of": "於",
"loading": "加載中...",

"Dashboard": "儀表板",
"event": "活動"

Loading…
取消
儲存