publish: add loading spinner for notebooks

Fixes #4008.
This commit is contained in:
Matilde Park 2020-11-24 15:36:46 -05:00
parent 3765a8a767
commit 28a7b3782e

View File

@ -55,15 +55,18 @@ export function NotebookRoutes(
<Route
path={baseUrl}
exact
render={(routeProps) => (
<Notebook
render={(routeProps) => {
if (!graph) {
return <Center height="100%"><LoadingSpinner /></Center>;
}
return <Notebook
{...props}
graph={graph}
contacts={notebookContacts}
association={props.association}
rootUrl={rootUrl}
baseUrl={baseUrl} />
)}
baseUrl={baseUrl} />;
}}
/>
<Route
path={relativePath("/new")}