diff --git a/src/components/items/AllItemsContainer.jsx b/src/components/items/AllItemsContainer.jsx index bff7fec91..e7fc0d832 100644 --- a/src/components/items/AllItemsContainer.jsx +++ b/src/components/items/AllItemsContainer.jsx @@ -2,7 +2,7 @@ import React, { useState, useEffect } from "react"; import { Link } from "react-router-dom"; import ItemContainer from "./ItemContainer"; import DropDownList from "./DropDownList"; -import PageNation from "./PageNation"; +import Pagination from "./Pagination"; import { getProducts } from "../../core/api"; import useFetch from "../../lib/hooks/useFetch"; import countPageItems from "../../lib/utils/countPageItems"; @@ -59,7 +59,7 @@ function AllItemsContainer() { ))} - { if (page >= 1 && page <= totalPages) { onPageChange(page); @@ -48,4 +48,4 @@ function PageNation({ currentPage, onPageChange, totalPages }) { ); } -export default PageNation; +export default Pagination;