Skip to content
This repository has been archived by the owner on Nov 2, 2021. It is now read-only.

Commit

Permalink
improve UI of loading resource
Browse files Browse the repository at this point in the history
  • Loading branch information
g-plane committed Oct 25, 2021
1 parent dbfbddb commit 46f1af0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/App.tsx
@@ -1,5 +1,5 @@
import { Suspense, lazy } from 'react'
import { Box, Center, ChakraProvider } from '@chakra-ui/react'
import { Box, Center, ChakraProvider, CircularProgress } from '@chakra-ui/react'
import initSWC from '@swc/wasm-web'
import { loader } from '@monaco-editor/react'
import HeaderBar from './components/HeaderBar'
Expand All @@ -11,8 +11,9 @@ const Workspace = lazy(async () => {

export default function App() {
const fallbackUI = (
<Center width="full" height="88vh">
Loading swc and editor...
<Center width="full" height="88vh" display="flex" flexDirection="column">
<CircularProgress isIndeterminate mb="3" />
<div>Loading swc and editor...</div>
</Center>
)

Expand Down

0 comments on commit 46f1af0

Please sign in to comment.