Use spinners instead of skeletons

This commit is contained in:
navaneeth 2021-07-03 23:37:51 +05:30
parent 9dbfe99923
commit e994725104
3 changed files with 9 additions and 4 deletions

View file

@ -26,7 +26,8 @@ export const Chart = function Chart({
const computedStyles = {
width,
height
height,
background: darkMode ? '#1f2936' : 'white'
};
const dataProperty = component.definition.properties.data;
@ -109,7 +110,9 @@ export const Chart = function Chart({
>
{loadingState === true ?
<div style={{ width: '100%' }} className="p-2">
<Skeleton count={5} />
<center>
<div className="spinner-border mt-5" role="status"></div>
</center>
</div>
:
<Plot

View file

@ -589,7 +589,9 @@ export function Table({
</table>
{loadingState === true && (
<div style={{ width: '100%' }} className="p-2">
<Skeleton count={5} />
<center>
<div className="spinner-border mt-5" role="status"></div>
</center>
</div>
)}
</div>

View file

@ -45,7 +45,7 @@ export const Text = function Text({
{!loadingState && <div dangerouslySetInnerHTML={{ __html: DOMPurify.sanitize(data) }} />}
{loadingState === true && (
<div>
<Skeleton count={1} />
<div className="skeleton-line w-10"></div>
</div>
)}
</div>