terms and conditions added

This commit is contained in:
victorAnumudu
2025-02-25 07:29:23 +01:00
parent 8b45dd409f
commit fcd72e401a
3 changed files with 27 additions and 1 deletions
+6
View File
@@ -12,11 +12,13 @@ import Offers from './loan_screen/Offers';
import LoanPin from './loan_screen/LoanPin';
import SelectedOffer from './loan_screen/SelectedOffer';
import GetLoan from './loan_screen/GetLoan';
import TermsAndConditions from './loan_screen/TermsAndConditions';
export default function GetLoanScreens() {
let screens = {
products: 'products-screen',
terms_conditions: 'terms_conditions',
getLoan: 'get-loan',
pin: 'pin-screen',
offers: 'offers-screen',
@@ -120,6 +122,10 @@ export default function GetLoanScreens() {
<>
<GetLoan step={step} handleStep={handleStep} screens={screens} />
</>
:step?.screen[step.screen.length -1 ] == screens.terms_conditions ?
<>
<TermsAndConditions step={step} handleStep={handleStep} screens={screens} />
</>
:step?.screen[step.screen.length -1 ] == screens.pin ?
<>
<Pin step={step} handleStep={handleStep} screens={screens} />
+1 -1
View File
@@ -4,7 +4,7 @@ export default function GetLoan({step, handleStep, screens}) {
const handleGetLoan = () => {
// handleStep({...step.details}, screens.pin)
handleStep({...step.details}, screens.offers)
handleStep({...step.details}, screens.terms_conditions)
}
return (
@@ -0,0 +1,20 @@
import React from 'react'
export default function TermsAndCondition({step, handleStep, screens}) {
const handleGetLoan = () => {
// handleStep({...step.details}, screens.pin)
handleStep({...step.details}, screens.offers)
}
return (
<div className='mt-3 h-full flex flex-col gap-3'>
<div className='text-input font-semibold w-full flex flex-col gap-4 justify-center items-center'>
<p className='text-center text-base md:text-xl'>I accept the Terms and Conditions</p>
</div>
<div className='mt-3 flex justify-center'>
<button onClick={handleGetLoan} className='p-3 bg-purple-800 text-lg sm:text-2xl text-white font-bold rounded'>Accept</button>
</div>
</div>
)
}