From e994725104af50d9210b901d2a95f806a2195a09 Mon Sep 17 00:00:00 2001 From: navaneeth Date: Sat, 3 Jul 2021 23:37:51 +0530 Subject: [PATCH] Use spinners instead of skeletons --- frontend/src/Editor/Components/Chart.jsx | 7 +++++-- frontend/src/Editor/Components/Table/Table.jsx | 4 +++- frontend/src/Editor/Components/Text.jsx | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/frontend/src/Editor/Components/Chart.jsx b/frontend/src/Editor/Components/Chart.jsx index 2d471843e0..417e71ec22 100644 --- a/frontend/src/Editor/Components/Chart.jsx +++ b/frontend/src/Editor/Components/Chart.jsx @@ -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 ?
- +
+
+
: {loadingState === true && (
- +
+
+
)} diff --git a/frontend/src/Editor/Components/Text.jsx b/frontend/src/Editor/Components/Text.jsx index 2894709264..533e5def9c 100644 --- a/frontend/src/Editor/Components/Text.jsx +++ b/frontend/src/Editor/Components/Text.jsx @@ -45,7 +45,7 @@ export const Text = function Text({ {!loadingState &&
} {loadingState === true && (
- +
)}