first commit
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import React from 'react'
|
||||
import ErrorCom from '../components/error/ErrorCom'
|
||||
|
||||
export default function ErrorPage() {
|
||||
return (
|
||||
<ErrorCom />
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import React from 'react'
|
||||
import HomeCom from '../components/home/HomeCom'
|
||||
|
||||
export default function HomePage() {
|
||||
return (
|
||||
<HomeCom />
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import React from 'react'
|
||||
import LoanChargesCom from '../components/loan_charges/LoanChargesCom'
|
||||
|
||||
export default function LoanChargesPage() {
|
||||
return (
|
||||
<LoanChargesCom />
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import React from 'react'
|
||||
import LoansCom from '../components/loanscom/LoansCom'
|
||||
|
||||
export default function LoansPage() {
|
||||
return (
|
||||
<LoansCom />
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import React from 'react'
|
||||
import LoginCom from '../components/auth/LoginCom'
|
||||
|
||||
export default function LoginPage() {
|
||||
return (
|
||||
<LoginCom />
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import React from 'react'
|
||||
import OffersCom from '../components/offers/OffersCom'
|
||||
|
||||
export default function OffersPage() {
|
||||
return (
|
||||
<OffersCom />
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import React from 'react'
|
||||
import RepaymentsCom from '../components/repayments/RepaymentsCom'
|
||||
|
||||
export default function RepaymentsPage() {
|
||||
return (
|
||||
<RepaymentsCom />
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
import React, { useEffect } from 'react'
|
||||
import {useLocation, useNavigate} from 'react-router-dom'
|
||||
import TransactionDetailsCom from '../components/transactionDetails/TransactionDetailsCom'
|
||||
|
||||
|
||||
export default function TransactionDetailsPage() {
|
||||
const {state} = useLocation()
|
||||
const navigate = useNavigate()
|
||||
|
||||
useEffect(()=>{
|
||||
if(!state?.transactionID){
|
||||
navigate('/', {replace: true})
|
||||
}
|
||||
},[])
|
||||
return (
|
||||
<TransactionDetailsCom id={state?.transactionID} />
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import React from 'react'
|
||||
import TransactionsCom from '../components/transactions/TransactionsCom'
|
||||
|
||||
export default function TransactionsPage() {
|
||||
return (
|
||||
<TransactionsCom />
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user