From a5a674ef643f6d4a62e4f027e83d5de37791461f Mon Sep 17 00:00:00 2001 From: Kirill Chernakov Date: Wed, 20 Nov 2024 15:58:13 +0400 Subject: [PATCH] chore: polish read-only banner (#2554) Co-authored-by: Tal --- keep-ui/app/read-only-banner.tsx | 73 +++++++++++++++++++------------- 1 file changed, 44 insertions(+), 29 deletions(-) diff --git a/keep-ui/app/read-only-banner.tsx b/keep-ui/app/read-only-banner.tsx index f0e49c41e..fd29224e1 100644 --- a/keep-ui/app/read-only-banner.tsx +++ b/keep-ui/app/read-only-banner.tsx @@ -1,41 +1,56 @@ "use client"; import React from "react"; -import { X } from "lucide-react"; -import { useLocalStorage } from "utils/hooks/useLocalStorage"; -import { Card, Text, Button } from "@tremor/react"; +import { Text, Button } from "@tremor/react"; import Image from "next/image"; import KeepPng from "../keep.png"; +import posthog from "posthog-js"; const ReadOnlyBanner = () => { - const [isVisible, setIsVisible] = useLocalStorage( - "read-only-banner-visible", - true - ); - - if (!isVisible) return null; - return ( - -
-
- Keep Logo - - Keep is in read-only mode. - +
+
+ + Keep Logo + Keep is in read-only mode. + +
+ +
-
- +
); };