style: display title when sso loading
This commit is contained in:
@@ -12,6 +12,18 @@ import { useSSOAuth } from '../hooks/use-sso-auth';
|
|||||||
import { checkDefaultPage } from '../utils';
|
import { checkDefaultPage } from '../utils';
|
||||||
import LocalUserForm from './local-user-form';
|
import LocalUserForm from './local-user-form';
|
||||||
|
|
||||||
|
const SpinContainer = styled.div`
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
height: 300px;
|
||||||
|
.spin {
|
||||||
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
const Buttons = styled.div`
|
const Buttons = styled.div`
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@@ -226,9 +238,14 @@ const LoginForm = () => {
|
|||||||
{contextHolder}
|
{contextHolder}
|
||||||
<div>
|
<div>
|
||||||
{isThirdPartyAuthHandling ? (
|
{isThirdPartyAuthHandling ? (
|
||||||
<Spin tip={intl.formatMessage({ id: 'common.login.auth' })}>
|
<SpinContainer>
|
||||||
<div style={{ width: 300 }}></div>
|
{renderWelCome()}
|
||||||
</Spin>
|
<div className="spin">
|
||||||
|
<Spin tip={intl.formatMessage({ id: 'common.login.auth' })}>
|
||||||
|
<div style={{ width: 300 }}></div>
|
||||||
|
</Spin>
|
||||||
|
</div>
|
||||||
|
</SpinContainer>
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
{renderWelCome()}
|
{renderWelCome()}
|
||||||
|
|||||||
Reference in New Issue
Block a user