diff --git a/src/components/GetLoan.jsx b/src/components/GetLoan.jsx index 8ca1cbc..82afbbe 100644 --- a/src/components/GetLoan.jsx +++ b/src/components/GetLoan.jsx @@ -1,5 +1,7 @@ import React, { useEffect, useState } from 'react' import { useLocation, useNavigate } from 'react-router-dom' +import { IoIosArrowBack } from "react-icons/io"; + import myLinks from '../myLinks' import Label from './Label' import InputText from './InputText' @@ -18,9 +20,14 @@ export default function LoginCom() { return (
-
+
+
navigate(myLinks.home, {state:{proceed:'true'}})}> + +
+

{state?.user.name}

BVN: {state?.user.bvn} +
diff --git a/src/components/HomeCom.jsx b/src/components/HomeCom.jsx index 41535ad..39fe5d1 100644 --- a/src/components/HomeCom.jsx +++ b/src/components/HomeCom.jsx @@ -40,7 +40,7 @@ export default function HomeCom() {

{error.message}

: - + {({ data }) => (
{data.map((user, index) => { diff --git a/src/components/TableWrapper.jsx b/src/components/TableWrapper.jsx index ebcd158..4aac601 100644 --- a/src/components/TableWrapper.jsx +++ b/src/components/TableWrapper.jsx @@ -53,6 +53,7 @@ export default function TableWrapper({ ); setIsLoading(false) },1000) + }, [currentPage, filteredData]); useEffect(()=>{ diff --git a/src/index.css b/src/index.css index eb4dd04..aa352e1 100644 --- a/src/index.css +++ b/src/index.css @@ -2,6 +2,10 @@ @tailwind components; @tailwind utilities; +html{ + scroll-behavior: smooth; +} + *{ transition: all .3s; }