fix: align popular sorting links
All checks were successful
Deploy to Frontend Servers / deploy (push) Successful in 20s
All checks were successful
Deploy to Frontend Servers / deploy (push) Successful in 20s
This commit is contained in:
@@ -607,10 +607,7 @@ export function PublicLayout() {
|
||||
to={popularHref}
|
||||
label={t("popular")}
|
||||
icon="update"
|
||||
active={
|
||||
pathname === "/browse" &&
|
||||
new URLSearchParams(search).get("tag") === "popular"
|
||||
}
|
||||
active={na("browsePopular")}
|
||||
/>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
@@ -71,7 +71,7 @@ export function Home() {
|
||||
getJSON<{ items: Post[] }>(`/api/posts/recommended${postQ}&limit=12`),
|
||||
getJSON<{ items: Post[] }>(`/api/posts${postQ}&sort=latest&limit=12`),
|
||||
getJSON<{ items: Post[] }>(
|
||||
`/api/posts${postQ}&tag=popular&limit=5`,
|
||||
`/api/posts${postQ}&sort=popular&limit=5`,
|
||||
).catch((): { items: Post[] } => ({ items: [] })),
|
||||
])
|
||||
.then(([c, r, l, p]) => {
|
||||
|
||||
Reference in New Issue
Block a user