diff --git a/src/components/Dashboard/common/LoadingPlaceholder.jsx b/src/components/Dashboard/common/LoadingPlaceholder.jsx
new file mode 100644
index 0000000..dfb6750
--- /dev/null
+++ b/src/components/Dashboard/common/LoadingPlaceholder.jsx
@@ -0,0 +1,38 @@
+import { Card, Flex, Typography } from 'antd'
+import { LoadingOutlined } from '@ant-design/icons'
+import PropTypes from 'prop-types'
+
+const { Text } = Typography
+
+const LoadingPlaceholder = ({ message, hasBackground = true }) => {
+ return (
+
+
+
+
+
+ {message}
+
+
+ )
+}
+
+LoadingPlaceholder.propTypes = {
+ message: PropTypes.string.isRequired,
+ hasBackground: PropTypes.bool
+}
+
+export default LoadingPlaceholder
diff --git a/src/components/Dashboard/common/MissingPlaceholder.jsx b/src/components/Dashboard/common/MissingPlaceholder.jsx
index 3d6dd08..6389195 100644
--- a/src/components/Dashboard/common/MissingPlaceholder.jsx
+++ b/src/components/Dashboard/common/MissingPlaceholder.jsx
@@ -4,13 +4,21 @@ import PropTypes from 'prop-types'
const { Text } = Typography
-const MissingPlaceholder = ({ message }) => {
+const MissingPlaceholder = ({ message, hasBackground = true }) => {
return (
-
+
@@ -23,7 +31,8 @@ const MissingPlaceholder = ({ message }) => {
}
MissingPlaceholder.propTypes = {
- message: PropTypes.string.isRequired
+ message: PropTypes.string.isRequired,
+ hasBackground: PropTypes.bool
}
export default MissingPlaceholder