Skip to content

Commit 239ba91

Browse files
author
Benjamin Perez
committed
Migrated Components loader to mds
Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>
1 parent 5e9383d commit 239ba91

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

portal-ui/e2e/lifecycle.spec.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,8 @@ test.describe("Add Lifecycle Rule Modal in bucket settings tests for object vers
7676

7777
await test.step("Clean up bucket and verify the clean up", async () => {
7878
await bucketSummaryPage.confirmDeleteBucket();
79-
const existBukCount = await bucketListPage.isBucketExist(
80-
versionedBucketName,
81-
);
79+
const existBukCount =
80+
await bucketListPage.isBucketExist(versionedBucketName);
8281
await expect(existBukCount).toEqual(0);
8382
});
8483
});

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)