Skip to content

Commit d2f604b

Browse files
authored
fix: hide sidebar notice (#943)
1 parent 2d3d544 commit d2f604b

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

components/Sidebar.tsx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,10 @@ export const SidebarComponent = ({ className }: { className?: string }) => {
155155
{/* Sidebar component, swap this element with another sidebar if you like */}
156156

157157
<div className="flex h-16 shrink-0 items-center space-x-3">
158-
<p className="flex items-center text-2xl font-bold tracking-tighter text-black dark:text-white" onClick={() => router.push("/documents")}>
158+
<p
159+
className="flex items-center text-2xl font-bold tracking-tighter text-black dark:text-white"
160+
onClick={() => router.push("/documents")}
161+
>
159162
Papermark{" "}
160163
{userPlan && userPlan != "free" ? (
161164
<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 }) => {
303306
usageLimit={documentsLimit}
304307
/>
305308
) : null}
306-
<p className="mt-2 px-2 text-xs text-muted-foreground">
307-
Change plan to increase usage limits
308-
</p>
309+
{linksLimit || documentsLimit ? (
310+
<p className="mt-2 px-2 text-xs text-muted-foreground">
311+
Change plan to increase usage limits
312+
</p>
313+
) : null}
309314
</div>
310315

311316
<div className="hidden w-full lg:block">

0 commit comments

Comments
 (0)