diff --git a/Client/src/Components/GenericFallback/NetworkError.jsx b/Client/src/Components/GenericFallback/NetworkError.jsx
new file mode 100644
index 000000000..b26037a57
--- /dev/null
+++ b/Client/src/Components/GenericFallback/NetworkError.jsx
@@ -0,0 +1,20 @@
+import { Typography } from "@mui/material";
+import { useTheme } from "@emotion/react";
+
+const NetworkError = () => {
+ const theme = useTheme();
+ return (
+ <>
+
+ Network error
+
+ Please check your connection
+ >
+ );
+};
+
+export default NetworkError;
diff --git a/Client/src/Components/NetworkErrorFallback/index.jsx b/Client/src/Components/GenericFallback/index.jsx
similarity index 81%
rename from Client/src/Components/NetworkErrorFallback/index.jsx
rename to Client/src/Components/GenericFallback/index.jsx
index 1039b256b..af9ed2ea4 100644
--- a/Client/src/Components/NetworkErrorFallback/index.jsx
+++ b/Client/src/Components/GenericFallback/index.jsx
@@ -1,5 +1,5 @@
import { useTheme } from "@emotion/react";
-import { Box, Stack, Typography } from "@mui/material";
+import { Box, Stack } from "@mui/material";
import Skeleton from "../../assets/Images/create-placeholder.svg?react";
import SkeletonDark from "../../assets/Images/create-placeholder-dark.svg?react";
import Background from "../../assets/Images/background-grid.svg?react";
@@ -11,13 +11,13 @@ import { useSelector } from "react-redux";
* @returns {JSX.Element} The rendered fallback UI.
*/
-const NetworkErrorFallback = () => {
+const GenericFallback = ({ children }) => {
const theme = useTheme();
const mode = useSelector((state) => state.ui.mode);
return (
{
maxWidth={"300px"}
zIndex={1}
>
-
- Network error
-
- Please check your connection
+ {children}
);
};
-export default NetworkErrorFallback;
+export default GenericFallback;