Show progress bar when loading on techdocs (#2065)
This commit is contained in:
committed by
GitHub
parent
27fedbc0d7
commit
5bf548ac80
@@ -15,7 +15,7 @@
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import { useApi } from '@backstage/core';
|
||||
import { useApi, Progress } from '@backstage/core';
|
||||
import { useShadowDom } from '..';
|
||||
import { useAsync } from 'react-use';
|
||||
import { techdocsStorageApiRef } from '../../api';
|
||||
@@ -131,5 +131,10 @@ export const Reader = ({ entityId }: Props) => {
|
||||
return <TechDocsNotFound />;
|
||||
}
|
||||
|
||||
return <div ref={shadowDomRef} />;
|
||||
return (
|
||||
<>
|
||||
{loading ? <Progress /> : null}
|
||||
<div ref={shadowDomRef} />
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user