mirror of
https://github.com/strapi/strapi.git
synced 2025-08-11 02:07:51 +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 { useHistory } from 'react-router-dom';
|
||||
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 { Flex } from '@strapi/design-system/Flex';
|
||||
import { Box } from '@strapi/design-system/Box';
|
||||
@ -114,6 +114,10 @@ const UsecasePage = () => {
|
||||
}
|
||||
};
|
||||
|
||||
if (!isComingFromRegister) {
|
||||
return <LoadingIndicatorPage />;
|
||||
}
|
||||
|
||||
return (
|
||||
<UnauthenticatedLayout>
|
||||
<Main>
|
||||
|
Loading…
x
Reference in New Issue
Block a user