Commit 0fcf0838 authored by Phạm Quang Bảo's avatar Phạm Quang Bảo

fix/dynamic page

parent 57dfc02c
......@@ -42,19 +42,6 @@ export default function DynamicPage() {
}, [slug, category, children, router]);
//template
if (slug[0] === "hoat-dong" && slug[1] === "su-kien") {
if (slug.length === 2) return <EventPage />;
if (slug.length === 3) return <EventDetailPage />;
}
if (news?.responseData?.count == 0 && isLoading) {
return (
<div className="flex justify-center items-center w-full h-64">
<Spinner />
</div>
);
}
if (news && news?.responseData.rows.length !== 0) {
return <ArticleDetailPage data={news} />;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment