From 47312b9868e4d2097362192a9533bf46e1c91063 Mon Sep 17 00:00:00 2001 From: "Rayyan (Rayy)" Date: Tue, 28 Nov 2023 07:39:45 +0000 Subject: [PATCH] Update to Review Form Component --- src/components/ReviewForm.js | 35 ++++++++++++++++++++++++++--------- 1 file changed, 26 insertions(+), 9 deletions(-) diff --git a/src/components/ReviewForm.js b/src/components/ReviewForm.js index 36a139c..ae0c065 100644 --- a/src/components/ReviewForm.js +++ b/src/components/ReviewForm.js @@ -15,11 +15,15 @@ export function ReviewForm(props) { const[review, setReview ] = useState() if (auth) { return ( -
+

Review {props.movietitle}

Star - setStar(evt.target.value) }> + setStar(evt.target.value)} + > @@ -30,17 +34,30 @@ export function ReviewForm(props) { Title - + setTitle(evt.target.value) } + /> Review - + setReview(evt.target.value) } + /> - +
- ) - } - else { - return null + ); + } else { + return null; } }