Franknoirot/video loading (#248)
* Refactor Loading to take children * Add loading state to stream
This commit is contained in:
@ -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}</>
|
||||
)
|
||||
}
|
||||
|
Reference in New Issue
Block a user