loanpanel

This commit is contained in:
Pablo Martin 2025-05-22 18:52:17 +02:00
parent 6333638ed9
commit 0a8177d2a0
2 changed files with 10 additions and 2 deletions

View file

View file

@ -1,4 +1,11 @@
import { useState } from "react";
const LoanPanel = () => {
const [hasBeenInteracted, setHasBeenInteracted] = useState(false);
const [loanPrincipal, setLoanPrincipal] = useState(null);
const [loanDuration, setLoanDuration] = useState(12);
const [loanInterest, setLoanInterest] = useState(5);
return (
<>
<div className="p-5 bg-gray-50 rounded-3xl border border-gray-400">
@ -9,6 +16,7 @@ const LoanPanel = () => {
</label>
<input
className="ml-3 w-[120px] w-min-0 bg-white rounded-tl-md rounded-bl-md text-black text-right p-1 !placeholder-gray-300"
value={loanPrincipal}
placeholder="1000"
/>
<div className="w-[60px] place-self-center p-1 rounded-tr-md rounded-br bg-gray-600 font-light">
@ -20,7 +28,7 @@ const LoanPanel = () => {
Duración
<input
className="ml-3 w-[60px] bg-white rounded-tl-md rounded-bl-md text-black text-right p-1"
defaultValue={12}
value={loanDuration}
/>
</label>
<div className="w-[60px] place-self-center p-1 rounded-tr-md rounded-br bg-gray-600 font-light">
@ -32,7 +40,7 @@ const LoanPanel = () => {
Interés (TIN)
<input
className="ml-3 w-[60px] bg-white rounded-tl-md rounded-bl-md text-black text-right p-1"
defaultValue={5}
value={loanInterest}
/>
</label>
<div className="w-[60px] place-self-center p-1 rounded-tr-md rounded-br bg-gray-600 font-light">