Update Loading.tsx

This commit is contained in:
Steve Ruiz 2022-07-19 15:56:55 +01:00
parent d8e7a0b804
commit 5e9d3c6a45

View file

@ -11,10 +11,8 @@ export function Loading() {
const app = useTldrawApp()
const isLoading = app.useStore(loadingSelector)
if (!isLoading) return null
return (
<StyledLoadingPanelContainer>
<StyledLoadingPanelContainer hidden={!isLoading}>
<FormattedMessage id="loading" values={{ dots: '...' }} />
</StyledLoadingPanelContainer>
)