mirror of
https://github.com/strapi/strapi.git
synced 2025-08-13 11:17:42 +00:00
feat(usecase): return LoadingIndicatorPage when not coming from register
This commit is contained in:
parent
5506bf0bd7
commit
66f9d42f9e
@ -3,7 +3,7 @@ import axios from 'axios';
|
|||||||
import { useIntl } from 'react-intl';
|
import { useIntl } from 'react-intl';
|
||||||
import { useHistory } from 'react-router-dom';
|
import { useHistory } from 'react-router-dom';
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import { pxToRem, useNotification } from '@strapi/helper-plugin';
|
import { pxToRem, useNotification, LoadingIndicatorPage } from '@strapi/helper-plugin';
|
||||||
import { Main } from '@strapi/design-system/Main';
|
import { Main } from '@strapi/design-system/Main';
|
||||||
import { Flex } from '@strapi/design-system/Flex';
|
import { Flex } from '@strapi/design-system/Flex';
|
||||||
import { Box } from '@strapi/design-system/Box';
|
import { Box } from '@strapi/design-system/Box';
|
||||||
@ -114,6 +114,10 @@ const UsecasePage = () => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (!isComingFromRegister) {
|
||||||
|
return <LoadingIndicatorPage />;
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<UnauthenticatedLayout>
|
<UnauthenticatedLayout>
|
||||||
<Main>
|
<Main>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user