Skip to content

Commit f8e4f74

Browse files
authored
Migrated Components loader to mds (#3025)
Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>
1 parent 9acd49f commit f8e4f74

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

portal-ui/src/common/LoadingComponent.tsx

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,25 @@
1515
// along with this program. If not, see <http://www.gnu.org/licenses/>.
1616

1717
import React from "react";
18-
import { Grid } from "@mui/material";
19-
import { Loader } from "mds";
18+
import { Loader, Grid } from "mds";
2019

2120
const LoadingComponent = () => {
2221
return (
2322
<Grid
2423
container
25-
spacing={0}
26-
direction="column"
27-
alignItems="center"
28-
justifyContent="center"
29-
style={{ minHeight: "100vh" }}
24+
sx={{
25+
height: "100vh",
26+
display: "flex",
27+
flexDirection: "column",
28+
alignItems: "center",
29+
justifyContent: "center",
30+
}}
3031
>
31-
<Grid item xs={3} style={{ textAlign: "center" }}>
32+
<Grid
33+
item
34+
xs={3}
35+
sx={{ display: "flex", justifyContent: "center", alignItems: "center" }}
36+
>
3237
<Loader style={{ width: 35, height: 35 }} />
3338
</Grid>
3439
</Grid>

0 commit comments

Comments
 (0)