💄(frontend) fix loading screen not visually centered

the loading word was sticked to top left without any padding
This commit is contained in:
Emmanuel Pelletier
2024-07-25 14:34:26 +02:00
parent d6502f0739
commit d15fb0a19b

View File

@@ -2,6 +2,8 @@ import { useState, useEffect } from 'react'
import { useTranslation } from 'react-i18next'
import { BoxScreen } from './BoxScreen'
import { Screen } from './Screen'
import { VerticallyOffCenter } from '@/primitives'
import { Center, Container } from '@/styled-system/jsx'
export const LoadingScreen = ({
asBox = false,
@@ -23,7 +25,11 @@ export const LoadingScreen = ({
const Container = asBox ? BoxScreen : Screen
return (
<Container>
<p>{t('loading')}</p>
<VerticallyOffCenter>
<Center>
<p>{t('loading')}</p>
</Center>
</VerticallyOffCenter>
</Container>
)
}