mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 01:18:23 +00:00
Use spinners instead of skeletons
This commit is contained in:
parent
9dbfe99923
commit
e994725104
3 changed files with 9 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue