kopia lustrzana https://github.com/Tldraw/Tldraw
Update Loading.tsx
rodzic
d8e7a0b804
commit
5e9d3c6a45
|
@ -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>
|
||||
)
|
||||
|
|
Ładowanie…
Reference in New Issue