feat(usecase): return LoadingIndicatorPage when not coming from register

This commit is contained in:
ronronscelestes 2022-02-14 15:36:49 +01:00
parent 5506bf0bd7
commit 66f9d42f9e

View File

@ -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>