feat: enable category slug pages

This commit is contained in:
TerryM
2026-05-28 22:36:08 +08:00
parent f183a401fc
commit b24529afc4
6 changed files with 46 additions and 105 deletions

View File

@@ -1,6 +1,5 @@
import { useSearchParams } from "react-router-dom";
import { MessageStream } from "../../components/messageStream/MessageStream";
import { SectionHeader } from "../../components/SectionHeader";
import { AssetStreamPage } from "../../components/AssetStreamPage";
import { useI18n } from "../../i18n";
export function Browse() {
@@ -17,12 +16,5 @@ export function Browse() {
: sort === "popular"
? t("popular")
: t("all");
return (
<section>
<div className="mx-auto max-w-full px-4 md:max-w-[820px] lg:max-w-[1080px] xl:max-w-[1180px]">
<SectionHeader title={title} />
</div>
<MessageStream scope={{ kind: "all" }} />
</section>
);
return <AssetStreamPage title={title} scope={{ kind: "all" }} />;
}