diff --git a/src/components/GetStarted/LoanAmountComp.tsx b/src/components/GetStarted/LoanAmountComp.tsx index 8b36031..648ad52 100644 --- a/src/components/GetStarted/LoanAmountComp.tsx +++ b/src/components/GetStarted/LoanAmountComp.tsx @@ -1,10 +1,15 @@ import React from "react"; import { InputCompOne } from ".."; +interface SliderProps { + handleSliderChange: (e: React.ChangeEvent) => void; + value: number; + } + const LoanAmountComp: React.FC = () => { const [value, setValue] = React.useState(6); - const handleSliderChange = (e) => { + const handleSliderChange = (e: any) => { setValue(e.target.value); }; @@ -90,7 +95,7 @@ const LoanAmountComp: React.FC = () => { export default LoanAmountComp; -const Slider = ({ handleSliderChange, value }) => { +const Slider: React.FC = ({ handleSliderChange, value }) => { return (

For how many months?