From b7e62e580a04e1d9f6886b96d4f50b828be71f67 Mon Sep 17 00:00:00 2001 From: "Rayyan (Rayy)" Date: Tue, 21 Nov 2023 09:31:43 +0000 Subject: [PATCH] Move Review form to seperate component --- src/components/ReviewForm.js | 29 +++++++++++++++++++++++++++++ src/pages/Detail.js | 26 -------------------------- 2 files changed, 29 insertions(+), 26 deletions(-) create mode 100644 src/components/ReviewForm.js diff --git a/src/components/ReviewForm.js b/src/components/ReviewForm.js new file mode 100644 index 0000000..762de59 --- /dev/null +++ b/src/components/ReviewForm.js @@ -0,0 +1,29 @@ +import Form from "react-bootstrap/Form" +import Button from "react-bootstrap/Button" + +export function ReviewForm(props) { + return ( +
+

Rewiew this movie

+ + Star + + + + + + + + + + Title + + + + Review + + + +
+ ) +} \ No newline at end of file diff --git a/src/pages/Detail.js b/src/pages/Detail.js index 9125a68..f0f330f 100644 --- a/src/pages/Detail.js +++ b/src/pages/Detail.js @@ -45,32 +45,6 @@ export function Detail(props) {

{movieData.genre}

IMDB Link

{movieData.imdb_link}

-
-

Review this movie

- - Star Rating - - - - - - - - - - Title - - - - Review - - - - -

Existing reviews of this book

-

To be added

-
-