fix: place the spinner in the center
Some checks failed
it-academy/dry-wash-pl/pipeline/pr-main There was a failure building this commit
Some checks failed
it-academy/dry-wash-pl/pipeline/pr-main There was a failure building this commit
This commit is contained in:
parent
6096cfc15c
commit
1dee68b65d
@ -1,12 +1,11 @@
|
|||||||
import React, { useEffect, useState } from 'react';
|
import React, { useEffect, useState } from 'react';
|
||||||
import { useNavigate } from 'react-router-dom';
|
import { useNavigate } from 'react-router-dom';
|
||||||
import { AbsoluteCenter, Spinner } from '@chakra-ui/react';
|
import { AbsoluteCenter, Box, Spinner } from '@chakra-ui/react';
|
||||||
|
|
||||||
import LayoutArm from '../../components/LayoutArm';
|
import LayoutArm from '../../components/LayoutArm';
|
||||||
import authLogin from '../../keycloak';
|
import authLogin from '../../keycloak';
|
||||||
import { URLs } from '../../__data__/urls';
|
import { URLs } from '../../__data__/urls';
|
||||||
|
|
||||||
|
|
||||||
const Page = () => {
|
const Page = () => {
|
||||||
const [user, setUser] = useState(null);
|
const [user, setUser] = useState(null);
|
||||||
|
|
||||||
@ -20,9 +19,11 @@ const Page = () => {
|
|||||||
|
|
||||||
if (!user)
|
if (!user)
|
||||||
return (
|
return (
|
||||||
<AbsoluteCenter>
|
<Box position='relative' height='100vh'>
|
||||||
<Spinner />
|
<AbsoluteCenter>
|
||||||
</AbsoluteCenter>
|
<Spinner />
|
||||||
|
</AbsoluteCenter>
|
||||||
|
</Box>
|
||||||
);
|
);
|
||||||
|
|
||||||
return <LayoutArm />;
|
return <LayoutArm />;
|
||||||
|
Loading…
Reference in New Issue
Block a user