Skip to content

Commit

Permalink
Merge pull request mfts#753 from shnai0/completing
Browse files Browse the repository at this point in the history
feat: added small changes to side bar and upgrade modal
  • Loading branch information
mfts authored Oct 11, 2024
2 parents 44b2bfa + 9edac72 commit a7b82c0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
9 changes: 6 additions & 3 deletions components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,9 @@ 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>
</div>

<div className="hidden w-full lg:block">
Expand Down Expand Up @@ -332,15 +335,15 @@ function UsageProgress(data: {
<h3 className="font-medium">{title}</h3>
</div> */}

<div className="mt-2 flex flex-col space-y-2">
<div className="mt-1 flex flex-col space-y-1">
{usage !== undefined && usageLimit !== undefined ? (
<p className="text-sm text-foreground">
<p className="text-xs text-foreground">
<span>{nFormatter(usage)}</span> / {nFormatter(usageLimit)} {unit}
</p>
) : (
<div className="h-5 w-32 animate-pulse rounded-md bg-muted" />
)}
<Progress value={usagePercentage} className="h-2 bg-muted" max={100} />
<Progress value={usagePercentage} className="h-1 bg-muted" max={100} />
</div>
</div>
);
Expand Down
1 change: 1 addition & 0 deletions components/billing/upgrade-plan-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export function UpgradePlanModal({
"Custom branding",
"Folder organization",
"Require email verification",
"Clickable links inside documents",
"More file types: pppt, docx, excel",
"Papermark branding removed",
"1-year analytics retention",
Expand Down

0 comments on commit a7b82c0

Please sign in to comment.