This commit is contained in:
Pablo Martin 2025-05-22 19:11:07 +02:00
parent 89649406f7
commit 06b99b7cad
4 changed files with 6 additions and 6 deletions

View file

@ -1,7 +1,7 @@
import { useState } from "react"; import { useState } from "react";
import PrincipalInput from "./PrincipalInput"; import LoanPrincipalInput from "./LoanPrincipalInput";
import DurationInput from "./DurationInput"; import LoanDurationInput from "./LoanDurationInput";
import InterestInput from "./InterestInput"; import LoanInterestInput from "./LoanInterestInput";
const LoanPanel = () => { const LoanPanel = () => {
const [hasBeenInteracted, setHasBeenInteracted] = useState(false); const [hasBeenInteracted, setHasBeenInteracted] = useState(false);
@ -28,15 +28,15 @@ const LoanPanel = () => {
<> <>
<div className="p-5 bg-gray-50 rounded-3xl border border-gray-400"> <div className="p-5 bg-gray-50 rounded-3xl border border-gray-400">
<form className="flex flex-col justify-end items-end my-5 text-white bg-blue-600 p-5 rounded-3xl shadow-[0_4px_0_rgba(0,255,255,1)]"> <form className="flex flex-col justify-end items-end my-5 text-white bg-blue-600 p-5 rounded-3xl shadow-[0_4px_0_rgba(0,255,255,1)]">
<PrincipalInput <LoanPrincipalInput
onChangeCallback={handleLoanPrincipalChange} onChangeCallback={handleLoanPrincipalChange}
loanPrincipal={loanPrincipal} loanPrincipal={loanPrincipal}
/> />
<DurationInput <LoanDurationInput
onChangeCallback={handleLoanDurationChange} onChangeCallback={handleLoanDurationChange}
loanDuration={loanDuration} loanDuration={loanDuration}
/> />
<InterestInput <LoanInterestInput
onChangeCallback={handleLoanInterestChange} onChangeCallback={handleLoanInterestChange}
loanInterest={loanInterest} loanInterest={loanInterest}
/> />