feat: refactor product components and add sitemap support
- Updated product components to use new IPageParams interface for better type safety. - Added next-sitemap configuration and generated sitemap.xml and robots.txt files. - Removed deprecated ProductCard component and its associated types. - Enhanced internationalization support across various pages.
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
'use client';
|
||||
|
||||
import { useState } from 'react';
|
||||
import ProductCard from '../ProductCard';
|
||||
import Pagination from '@/components/layout/pagination';
|
||||
import { getProducts } from '@/services/products';
|
||||
import { IProductListProps } from './productList';
|
||||
import ProductCard from '../productCard';
|
||||
|
||||
export default function ProductList({
|
||||
initialProducts,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { IPagination } from '@/models/response';
|
||||
import { IProductCardProps } from '../productCard';
|
||||
import { IProductCardProps } from '../productCard/productCard.d';
|
||||
|
||||
export interface IProductListProps {
|
||||
initialProducts: IProductCardProps[];
|
||||
|
||||
Reference in New Issue
Block a user