add Main component and remove as

This commit is contained in:
Mark Kaylor 2022-03-31 16:12:02 +02:00
parent 119ebb46b8
commit 18ee563584

View File

@ -123,6 +123,7 @@ const MarketPlacePage = () => {
if (!isOnline) { if (!isOnline) {
return ( return (
<Layout> <Layout>
<Main>
<PageHeader /> <PageHeader />
<Flex <Flex
width="100%" width="100%"
@ -143,17 +144,14 @@ const MarketPlacePage = () => {
<Typography textColor="neutral700" variant="epsilon"> <Typography textColor="neutral700" variant="epsilon">
{formatMessage({ {formatMessage({
id: 'admin.pages.MarketPlacePage.offline.subtitle', id: 'admin.pages.MarketPlacePage.offline.subtitle',
defaultMessage: 'You need to be connected to the Internet to access Strapi Market.', defaultMessage:
'You need to be connected to the Internet to access Strapi Market.',
})} })}
</Typography> </Typography>
</Box> </Box>
<img <img src={offlineCloud} alt="offline" style={{ width: '88px', height: '88px' }} />
as="img"
src={offlineCloud}
alt="offline"
style={{ width: '88px', height: '88px' }}
/>
</Flex> </Flex>
</Main>
</Layout> </Layout>
); );
} }