Skip to content

Commit

Permalink
feat(ui): change category display on categories page
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusfg7 committed Jun 13, 2023
1 parent e8ec6f3 commit 1d2319e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/(blog)/categories/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ export default function Page() {
return (
<div className="blog-content-w m-auto">
<h1 className="mb-5 text-2xl font-bold">Categories</h1>
<div className="flex flex-wrap justify-between gap-2">
<div className="flex flex-wrap gap-2">
{categories
.sort((a, b) => a.category.localeCompare(b.category))
.sort((a, b) => b.numberOfPosts - a.numberOfPosts)
.map((categoryData, index) => (
<Link
key={index}
Expand Down

0 comments on commit 1d2319e

Please sign in to comment.