From 8852e9d65b49f6ee281d8b7019b98870571320e0 Mon Sep 17 00:00:00 2001 From: Ru Chern Chong Date: Wed, 27 Sep 2023 01:13:33 +0800 Subject: [PATCH] Update layout and UI to centralise contents --- src/App.tsx | 86 +++++++++++++++++++++++++++-------------------------- 1 file changed, 44 insertions(+), 42 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 2afc732..6808572 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -45,7 +45,7 @@ const App = () => { return (
-
+

CPF Contribution Calculator

@@ -57,51 +57,53 @@ const App = () => { )}

- setAgeGroup(ageGroups[Number(e.target.value)])} - > - {ageGroups.map(({ description }, index) => { - return ( - - ); - })} - - setSelectedYear(e.target.value)} - > - {cpfIncomeCeilings.map(({ year }) => { - if (year === "SEPT2023") { +
+ setAgeGroup(ageGroups[Number(e.target.value)])} + > + {ageGroups.map(({ description }, index) => { return ( - ); - } + })} + + setSelectedYear(e.target.value)} + > + {cpfIncomeCeilings.map(({ year }) => { + if (year === "SEPT2023") { + return ( + + ); + } - return ( - - ); - })} - - setGrossIncome(Number(e.target.value))} - /> -
- This is for illustration purposes only. No data are being stored. + return ( + + ); + })} + + setGrossIncome(Number(e.target.value))} + /> +
+ This is for illustration purposes only. No data are being stored. +
{Boolean(grossIncome) && (