diff --git a/src/components/GetLoanScreens.jsx b/src/components/GetLoanScreens.jsx index da1832d..421f527 100644 --- a/src/components/GetLoanScreens.jsx +++ b/src/components/GetLoanScreens.jsx @@ -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() { <> + :step?.screen[step.screen.length -1 ] == screens.terms_conditions ? + <> + + :step?.screen[step.screen.length -1 ] == screens.pin ? <> diff --git a/src/components/loan_screen/GetLoan.jsx b/src/components/loan_screen/GetLoan.jsx index d699692..836bcc6 100644 --- a/src/components/loan_screen/GetLoan.jsx +++ b/src/components/loan_screen/GetLoan.jsx @@ -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 ( diff --git a/src/components/loan_screen/TermsAndConditions.jsx b/src/components/loan_screen/TermsAndConditions.jsx new file mode 100644 index 0000000..0ad245c --- /dev/null +++ b/src/components/loan_screen/TermsAndConditions.jsx @@ -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 ( +
+
+

I accept the Terms and Conditions

+
+
+ +
+
+ ) +}