update
This commit is contained in:
@@ -3,9 +3,11 @@ import { useParams } from 'next/navigation';
|
||||
import NotFound from '../pages/404';
|
||||
import { resolvePageType } from '@/lib/resolvePageType';
|
||||
|
||||
import CategoryPage from '@/components/Product/Category';
|
||||
import ProductDetailPage from '@/components/Product/ProductDetail';
|
||||
import ArticlePage from '@/components/Article';
|
||||
import CategoryPage from '@/app/pages/Product/Category';
|
||||
import ProductDetailPage from '@/app/pages/Product/ProductDetail';
|
||||
import ArticlePage from '@/app/pages/Article/HomeArticlePage';
|
||||
import ArticleCategoryPage from '@/app/pages/Article/CategoryPage';
|
||||
import ArticleDetailPage from '@/app/pages/Article/DetailPage';
|
||||
|
||||
export default function DynamicPage() {
|
||||
const { slug } = useParams();
|
||||
@@ -20,6 +22,10 @@ export default function DynamicPage() {
|
||||
return <ProductDetailPage slug={fullSlug} />;
|
||||
case 'article-home':
|
||||
return <ArticlePage />;
|
||||
case 'article-category':
|
||||
return <ArticleCategoryPage slug={fullSlug} />;
|
||||
case 'article-detail':
|
||||
return <ArticleDetailPage slug={fullSlug} />;
|
||||
default:
|
||||
return <NotFound />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user