diff --git a/src/components/home/HomeCom.jsx b/src/components/home/HomeCom.jsx index bec0724..9f129b6 100644 --- a/src/components/home/HomeCom.jsx +++ b/src/components/home/HomeCom.jsx @@ -38,17 +38,17 @@ export default function HomeCom() {

Loans

-
+
{/*

{dashData?.loans?.currency_text}

*/} -

{dashData?.loans?.currency_text}

+

{dashData?.loans?.currency_text}

{dashData?.loans?.text}

Payments

{/* */} -
-

{dashData?.payments?.currency_text}

+
+

{dashData?.payments?.currency_text}

{dashData?.payments?.text}

diff --git a/src/components/tableWrapper/TableWrapper.jsx b/src/components/tableWrapper/TableWrapper.jsx index c995ad5..f14a099 100644 --- a/src/components/tableWrapper/TableWrapper.jsx +++ b/src/components/tableWrapper/TableWrapper.jsx @@ -1,4 +1,4 @@ -import { ReactNode, useEffect, useState } from "react"; +import { useEffect, useState } from "react"; import MainBtn from "../MainBtn"; import Icons from "../Icons"; @@ -19,7 +19,7 @@ export default function TableWrapper({ const numberOfSelection = itemsPerPage; const handlePrev = () => { - if (currentPage != 0) { + if (currentPage !== 0) { setCurrentPage((prev) => prev - numberOfSelection); } }; @@ -46,7 +46,7 @@ export default function TableWrapper({ ); setIsLoading(false) },1000) - }, [currentPage, filteredData]); + }, [currentPage, filteredData, numberOfSelection]); useEffect(()=>{ setCurrentPage(0) @@ -92,7 +92,7 @@ export default function TableWrapper({