Franknoirot/video loading (#248)

* Refactor Loading to take children

* Add loading state to stream
This commit is contained in:
Frank Noirot
2023-08-10 16:22:45 -04:00
committed by GitHub
parent 3a93839a2d
commit ae460ed02f
3 changed files with 17 additions and 5 deletions

View File

@ -32,5 +32,9 @@ export const Auth = ({ children }: React.PropsWithChildren) => {
}
}, [user, token, navigate, isLoading])
return isLoading ? <Loading /> : <>{children}</>
return isLoading ? (
<Loading>Loading KittyCAD Modeling App...</Loading>
) : (
<>{children}</>
)
}