From 911c67e874b8ad47400f78fa905090f81f176cfb Mon Sep 17 00:00:00 2001 From: chukwumdiebube ojinta Date: Fri, 22 Mar 2024 23:27:58 +0100 Subject: [PATCH] Completed layout for Loan Amount --- src/components/GetStarted/LoanAmountComp.tsx | 45 +++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/src/components/GetStarted/LoanAmountComp.tsx b/src/components/GetStarted/LoanAmountComp.tsx index 7294194..8b36031 100644 --- a/src/components/GetStarted/LoanAmountComp.tsx +++ b/src/components/GetStarted/LoanAmountComp.tsx @@ -2,6 +2,12 @@ import React from "react"; import { InputCompOne } from ".."; const LoanAmountComp: React.FC = () => { + const [value, setValue] = React.useState(6); + + const handleSliderChange = (e) => { + setValue(e.target.value); + }; + return ( <>
@@ -20,7 +26,7 @@ const LoanAmountComp: React.FC = () => {

-
+
{
+ + +
+
+

Your Monthly Repayment

+

N

+
+ +
@@ -72,3 +89,29 @@ const LoanAmountComp: React.FC = () => { }; export default LoanAmountComp; + +const Slider = ({ handleSliderChange, value }) => { + return ( +
+

For how many months?

+
+ +
+
+ {value} months +
+
+ ); +}; -- 2.34.1