diff --git a/Client/src/Pages/Infrastructure/Details/empty.jsx b/Client/src/Pages/Infrastructure/Details/empty.jsx new file mode 100644 index 000000000..4a311233f --- /dev/null +++ b/Client/src/Pages/Infrastructure/Details/empty.jsx @@ -0,0 +1,37 @@ +import { useTheme } from "@emotion/react"; +import PlaceholderLight from "../../../assets/Images/data_placeholder.svg?react"; +import PlaceholderDark from "../../../assets/Images/data_placeholder_dark.svg?react"; +import { Box, Typography, Stack } from "@mui/material"; +import PropTypes from "prop-types"; +import { useSelector } from "react-redux"; +const Empty = ({ styles }) => { + const theme = useTheme(); + const mode = useSelector((state) => state.ui.mode); + return ( + + + {mode === "light" ? : } + + Your infrastructure dashboard will show here + + Hang tight! When we receive data, we'll show it here. Please check back in a few + minutes. + + + + ); +}; + +Empty.propTypes = { + styles: PropTypes.object, + mode: PropTypes.string, +}; + +export default Empty; diff --git a/Client/src/Pages/Infrastructure/Details/index.jsx b/Client/src/Pages/Infrastructure/Details/index.jsx index eaa3098b3..f9c8dbe1f 100644 --- a/Client/src/Pages/Infrastructure/Details/index.jsx +++ b/Client/src/Pages/Infrastructure/Details/index.jsx @@ -9,6 +9,7 @@ import { useSelector } from "react-redux"; import { networkService } from "../../../main"; import PulseDot from "../../../Components/Animated/PulseDot"; import useUtils from "../../Monitors/utils"; +import Empty from "./empty"; import { formatDurationRounded, formatDurationSplit } from "../../../Utils/timeUtils"; import { TzTick, @@ -16,7 +17,6 @@ import { InfrastructureTooltip, } from "../../../Components/Charts/Utils/chartUtils"; import PropTypes from "prop-types"; -import { DateRangeIcon } from "@mui/x-date-pickers"; const BASE_BOX_PADDING_VERTICAL = 4; const BASE_BOX_PADDING_HORIZONTAL = 8; @@ -396,13 +396,15 @@ const InfrastructureDetails = () => { ) : ( - - Hang tight, there's no data yet - + )} );