[go: nahoru, domu]

Skip to content

Commit

Permalink
Sort the months on the billing page
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubno committed May 31, 2024
1 parent 68b0992 commit 88b4d59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions apps/docs/src/app/pricing/SwitchToProButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ function SwitchTierButton() {
<TierActiveTag />
)}



{user.pricingTier.id !== tiers.pro.id && (
<Button
onClick={createCheckoutSession}
Expand Down
4 changes: 2 additions & 2 deletions apps/docs/src/app/usage/Credits.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function Credits() {
</div>

<div className="flex flex-col justify-start items-start gap-1">
{usage.map((u, index) => (
{usage.reverse().map((u, index) => (
<React.Fragment key={index}>
<h3 className="text-xl">
{new Date(u.year, u.month - 1).toLocaleDateString('en-US', { month: 'long', year: 'numeric' })}
Expand All @@ -73,4 +73,4 @@ function Credits() {
)
}

export default Credits
export default Credits

0 comments on commit 88b4d59

Please sign in to comment.