Skip to content

Commit f42e9cd

Browse files
committed
render loading spinner instead of text
1 parent c8dd1fc commit f42e9cd

File tree

1 file changed

+12
-1
lines changed
  • packages/docusaurus-theme-openapi-docs/src/theme/ApiItem

1 file changed

+12
-1
lines changed

packages/docusaurus-theme-openapi-docs/src/theme/ApiItem/index.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,18 @@ export default function ApiItem(props: Props): JSX.Element {
152152
<MDXComponent />
153153
</div>
154154
<div className="col col--5 openapi-right-panel__container">
155-
<BrowserOnly fallback={<div>Loading...</div>}>
155+
<BrowserOnly
156+
fallback={
157+
<div className="openapi-explorer__loading-container">
158+
<div className="openapi-response__lds-ring">
159+
<div></div>
160+
<div></div>
161+
<div></div>
162+
<div></div>
163+
</div>
164+
</div>
165+
}
166+
>
156167
{() => {
157168
return <ApiExplorer item={api} infoPath={infoPath} />;
158169
}}

0 commit comments

Comments
 (0)