Skip to content

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

fix: hide sidebar notice (#943)

Marc Seitzd2f604b0af14
diff --git a/components/Sidebar.tsx b/components/Sidebar.tsx
index 03dc0d58..2893d023 100644
--- a/components/Sidebar.tsx
+++ b/components/Sidebar.tsx
@@ -155,7 +155,10 @@ export const SidebarComponent = ({ className }: { className?: string }) => {
{/* Sidebar component, swap this element with another sidebar if you like */}
<div className="flex h-16 shrink-0 items-center space-x-3">
- <p className="flex items-center text-2xl font-bold tracking-tighter text-black dark:text-white" onClick={() => router.push("/documents")}>
+ <p
+ className="flex items-center text-2xl font-bold tracking-tighter text-black dark:text-white"
+ onClick={() => router.push("/documents")}
+ >
Papermark{" "}
{userPlan && userPlan != "free" ? (
<span className="ml-4 rounded-full bg-background px-2.5 py-1 text-xs tracking-normal text-foreground ring-1 ring-gray-800">
@@ -303,9 +306,11 @@ export const SidebarComponent = ({ className }: { className?: string }) => {
usageLimit={documentsLimit}
/>
) : null}
- <p className="mt-2 px-2 text-xs text-muted-foreground">
- Change plan to increase usage limits
- </p>
+ {linksLimit || documentsLimit ? (
+ <p className="mt-2 px-2 text-xs text-muted-foreground">
+ Change plan to increase usage limits
+ </p>
+ ) : null}
</div>
<div className="hidden w-full lg:block">