summaryrefslogtreecommitdiff
path: root/web/src/views/LoadingPage/LoadingPage.tsx
blob: da7d0e52e4ecbaccaf76940da0c6d1a0de23c297 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import React from "react";

import { useTheme, Typography, Grid } from "@material-ui/core";
import { useTranslation } from "react-i18next";
import ReactLoading from "react-loading";

const LoadingPage = function () {
    const theme = useTheme();
    const { t: translate } = useTranslation("Portal");
    return (
        <Grid container alignItems="center" justifyContent="center" style={{ minHeight: "100vh" }}>
            <Grid item style={{ textAlign: "center", display: "inline-block" }}>
                <ReactLoading width={64} height={64} color={theme.custom.loadingBar} type="bars" />
                <Typography>{translate("Loading")}...</Typography>
            </Grid>
        </Grid>
    );
};

export default LoadingPage;