Skip to content

Commit 0497f6e

Browse files
committed
center loadin spinner
1 parent 5a53b04 commit 0497f6e

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

packages/ui/src/components/ValidatorList/ValidatorList.tsx

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,20 @@ export default function ValidatorList({
9191
{validatorsGetError}
9292
</Alert>
9393
) : loading ? (
94-
<CircularProgress
94+
<Box
9595
sx={{
96-
marginBottom: 4
96+
display: "flex",
97+
justifyContent: "center",
98+
height: "100%",
99+
alignItems: "center"
97100
}}
98-
/>
101+
>
102+
<CircularProgress
103+
sx={{
104+
marginBottom: 4
105+
}}
106+
/>
107+
</Box>
99108
) : validatorsGet ? (
100109
<>
101110
<KeystoresDataGrid

0 commit comments

Comments
 (0)