From 66032ac03f40e88a28b77dc421ae25547265a174 Mon Sep 17 00:00:00 2001 From: Bilal Date: Fri, 4 Sep 2020 17:42:01 +0300 Subject: [PATCH] improve money move form --- client/src/App.css | 4 ++++ client/src/cash/MakeMoneyMove.js | 24 ++++++++++++------------ 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/client/src/App.css b/client/src/App.css index cc1ca1d..4a6d56e 100644 --- a/client/src/App.css +++ b/client/src/App.css @@ -45,3 +45,7 @@ margin-right: 100px; } +.required:before { + color: red; + content: "* "; +} \ No newline at end of file diff --git a/client/src/cash/MakeMoneyMove.js b/client/src/cash/MakeMoneyMove.js index 4220a5d..67a274a 100644 --- a/client/src/cash/MakeMoneyMove.js +++ b/client/src/cash/MakeMoneyMove.js @@ -39,7 +39,6 @@ const MakeMoneyMove = (props) => { const homieOptions = homiesCash.map(homieToOptionMapper); const handleFromHomieChange = (e) => { - console.log("from homie", e.target.value); setSelectedFrom(e.target.value); }; const filteredHomieCashes = homiesCash.filter((homieCash) => homieCash.homie.id !== parseInt(selectedFrom)); @@ -92,23 +91,24 @@ const MakeMoneyMove = (props) => { const disableSubmit = () => (!formComplete() || submitInProgress); return ( -
+

Make Money Move

- - + +
+ + + +
+ + - - {filteredHomieOptions} -- 2.47.3