From da2a9ee522d82a3f4a5895933356303af55e516d Mon Sep 17 00:00:00 2001 From: Kirill Chernakov Date: Wed, 20 Nov 2024 15:44:55 +0400 Subject: [PATCH] feature: polish read-only banner --- 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. + +
+ +
-
- +
); };