From 3e59c78287793ce72ab97913a51668ee6324062f Mon Sep 17 00:00:00 2001 From: LandaMm Date: Tue, 3 Jun 2025 12:58:57 +0200 Subject: [PATCH] feat: api services `updated` modal --- .../feature/ApiServiceUpdatedModal/index.tsx | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 web/src/feature/ApiServiceUpdatedModal/index.tsx diff --git a/web/src/feature/ApiServiceUpdatedModal/index.tsx b/web/src/feature/ApiServiceUpdatedModal/index.tsx new file mode 100644 index 0000000..9ea9532 --- /dev/null +++ b/web/src/feature/ApiServiceUpdatedModal/index.tsx @@ -0,0 +1,44 @@ +import { createPortal } from "react-dom"; +import { Button } from "@/components/ui/button"; +import { CircleCheckBig, X } from "lucide-react"; +import { useAdmin } from "@/store/admin"; + +const ApiServiceUpdatedModal = () => { + const resetUpdated = useAdmin((state) => state.resetUpdatedApiService); + + const portalRoot = document.getElementById("portal-root"); + if (!portalRoot) return null; + + return createPortal( +
+
+
+

Service Updated

+ +
+
+
+ +

+ Service has updated successfully! +

+
+
+ +
+
+
+
, + portalRoot, + ); +}; + +export default ApiServiceUpdatedModal;