From 9e8a7d90e1366acdb656df743d07c64643cbfa9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=98=81=EC=A3=BC?= Date: Fri, 5 Jul 2024 22:00:17 +0900 Subject: [PATCH] rename: Pagenation.jsx -> Pagination.jsx --- src/components/items/AllItemsContainer.jsx | 4 ++-- src/components/items/{PageNation.jsx => Pagination.jsx} | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename src/components/items/{PageNation.jsx => Pagination.jsx} (92%) 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;