Skip to content

Commit

Permalink
rename: Pagenation.jsx -> Pagination.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
purplenib committed Jul 5, 2024
1 parent 4e1b8a4 commit 9e8a7d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/items/AllItemsContainer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -59,7 +59,7 @@ function AllItemsContainer() {
))}
</div>
</section>
<PageNation
<Pagination
currentPage={page}
totalPages={totalPages}
onPageChange={setPage}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";

function PageNation({ currentPage, onPageChange, totalPages }) {
function Pagination({ currentPage, onPageChange, totalPages }) {
const handlePageChange = (page) => {
if (page >= 1 && page <= totalPages) {
onPageChange(page);
Expand Down Expand Up @@ -48,4 +48,4 @@ function PageNation({ currentPage, onPageChange, totalPages }) {
);
}

export default PageNation;
export default Pagination;

0 comments on commit 9e8a7d9

Please sign in to comment.