diff --git a/src/Components/Charts/Bar/index.jsx b/src/Components/Charts/Bar/index.jsx
deleted file mode 100644
index e6d5fbea3..000000000
--- a/src/Components/Charts/Bar/index.jsx
+++ /dev/null
@@ -1,45 +0,0 @@
-import { Box } from "@mui/material";
-import { useTheme } from "@emotion/react";
-import PropTypes from "prop-types";
-
-/**
- * A customizable Bar component that renders a colored bar with optional children.
- *
- * @component
- *
- * @param {string} width The width of the bar (e.g., "100px").
- * @param {string} height The height of the bar (e.g., "50px").
- * @param {string} backgroundColor The background color of the bar (e.g., "#FF5733").
- * @param {string} [borderRadius] Optional border radius for the bar (e.g., "8px").
- * @param {node} children The content to be rendered inside the bar.
- *
- * @returns {JSX.Element} The Bar component.
- */
-
-const Bar = ({ width, height, backgroundColor, borderRadius, children }) => {
- const theme = useTheme();
-
- return (
-
- {children}
-
- );
-};
-
-Bar.propTypes = {
- width: PropTypes.string.isRequired,
- height: PropTypes.string.isRequired,
- backgroundColor: PropTypes.string.isRequired,
- borderRadius: PropTypes.string,
- children: PropTypes.node,
-};
-
-export default Bar;
diff --git a/src/Components/Charts/StatusPageBarChart/index.jsx b/src/Components/Charts/StatusPageBarChart/index.jsx
index 84015da4a..29a52b053 100644
--- a/src/Components/Charts/StatusPageBarChart/index.jsx
+++ b/src/Components/Charts/StatusPageBarChart/index.jsx
@@ -3,7 +3,45 @@ import { Box, Stack, Tooltip, Typography } from "@mui/material";
import { formatDateWithTz } from "../../../Utils/timeUtils";
import { useEffect, useState } from "react";
import { useSelector } from "react-redux";
-import Bar from "../Bar";
+import PropTypes from "prop-types";
+
+/**
+ * A customizable Bar component that renders a colored bar with optional children.
+ * @component
+ *
+ * @param {string} width The width of the bar (e.g., "100px").
+ * @param {string} height The height of the bar (e.g., "50px").
+ * @param {string} backgroundColor The background color of the bar (e.g., "#FF5733").
+ * @param {string} [borderRadius] Optional border radius for the bar (e.g., "8px").
+ * @param {node} children The content to be rendered inside the bar.
+ * @returns {JSX.Element} The Bar component.
+ */
+
+const Bar = ({ width, height, backgroundColor, borderRadius, children }) => {
+ const theme = useTheme();
+
+ return (
+
+ {children}
+
+ );
+};
+
+Bar.propTypes = {
+ width: PropTypes.string.isRequired,
+ height: PropTypes.string.isRequired,
+ backgroundColor: PropTypes.string.isRequired,
+ borderRadius: PropTypes.string,
+ children: PropTypes.node,
+};
/* TODO add prop validation and jsdocs */
const StatusPageBarChart = ({ checks = [] }) => {
@@ -44,7 +82,7 @@ const StatusPageBarChart = ({ checks = [] }) => {
// even if there are less than 25 checks
@@ -138,7 +176,7 @@ const StatusPageBarChart = ({ checks = [] }) => {
}}
>