File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -155,7 +155,10 @@ export const SidebarComponent = ({ className }: { className?: string }) => {
155
155
{ /* Sidebar component, swap this element with another sidebar if you like */ }
156
156
157
157
< 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
+ >
159
162
Papermark{ " " }
160
163
{ userPlan && userPlan != "free" ? (
161
164
< 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 }) => {
303
306
usageLimit = { documentsLimit }
304
307
/>
305
308
) : 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 }
309
314
</ div >
310
315
311
316
< div className = "hidden w-full lg:block" >
You can’t perform that action at this time.
0 commit comments