Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

remove pro banner

Marc Seitz6d3f192114ef
diff --git a/components/Sidebar.tsx b/components/Sidebar.tsx
index 67b9011b..753e70b3 100644
--- a/components/Sidebar.tsx
+++ b/components/Sidebar.tsx
@@ -1,4 +1,4 @@
-import { Fragment, useEffect, useState } from "react";
+import { Fragment, useState } from "react";
import { Menu, Dialog, Transition } from "@headlessui/react";
import { signOut, useSession } from "next-auth/react";
import {
@@ -10,23 +10,12 @@ import Link from "next/link";
import { cn } from "@/lib/utils";
import { useRouter } from "next/router";
import { ModeToggle } from "./theme-toggle";
-import ProBanner from "./billing/pro-banner";
-import Cookies from "js-cookie";
export default function Sidebar() {
const { data: session } = useSession();
const [sidebarOpen, setSidebarOpen] = useState<boolean>(false);
- const [showProBanner, setShowProBanner] = useState<boolean | null>(null);
const router = useRouter();
- useEffect(() => {
- if (Cookies.get("hideProBanner") !== "producthunt-banner") {
- setShowProBanner(true);
- } else {
- setShowProBanner(false);
- }
- }, []);
-
const navigation = [
{
name: "Overview",
@@ -307,12 +296,6 @@ export default function Sidebar() {
</div>
</div>
</div>
- {showProBanner ? (
- <ProBanner
- setShowProBanner={setShowProBanner}
- />
- ) : null}
-
</>
);
}