From ee114ea3aa5dd2a00151655a7bc5cddea9a65d74 Mon Sep 17 00:00:00 2001 From: jveebs <83558932+jveebs@users.noreply.github.com> Date: Sun, 23 Apr 2023 17:39:15 -0400 Subject: [PATCH] Jake's stuff --- src/components/LoanCalculator.js | 32 ++++++++++++++++---------------- src/pages/Dashboard.jsx | 7 +++++-- 2 files changed, 21 insertions(+), 18 deletions(-) diff --git a/src/components/LoanCalculator.js b/src/components/LoanCalculator.js index 8f2983e..8d08aa2 100644 --- a/src/components/LoanCalculator.js +++ b/src/components/LoanCalculator.js @@ -25,22 +25,22 @@ const LoanCalculator = () => { }, [monthlyPayment]); return ( - <> -

Loan Calculator

- -
event.preventDefault()}> - setLoanAmount(event.target.value)}/> - setInterestRate(event.target.value)}/> - setLoanDuration(event.target.value)}/> - -

- Monthly Payment: ${parseFloat(monthlyPayment.toFixed(2))} -

Principal Paid: ${loanAmount}
-
Interest Paid: ${parseFloat(interestPaid.toFixed(2))}
- - - - +
+

Loan Calculator

+ +
event.preventDefault()}> + setLoanAmount(event.target.value)}/> + setInterestRate(event.target.value)}/> + setLoanDuration(event.target.value)}/> + +

+ Monthly Payment: ${parseFloat(monthlyPayment.toFixed(2))} +

Principal Paid: ${loanAmount}
+
Interest Paid: ${parseFloat(interestPaid.toFixed(2))}
+ + + +
) }; diff --git a/src/pages/Dashboard.jsx b/src/pages/Dashboard.jsx index 5837a92..3190118 100644 --- a/src/pages/Dashboard.jsx +++ b/src/pages/Dashboard.jsx @@ -42,10 +42,13 @@ export default function Dashboard() {
-
+
+ +
+
-
+