Skip to content

[issue86] add rating to books#87

Open
RawandDev wants to merge 37 commits into
devfrom
RawandDev/issue86
Open

[issue86] add rating to books#87
RawandDev wants to merge 37 commits into
devfrom
RawandDev/issue86

Conversation

@RawandDev
Copy link
Copy Markdown
Member

add rating to books. Sorry I didn't have much time to write the template.
https://gyazo.com/a259eb865a07226c926bc6894774ca42

@RawandDev RawandDev added this to the Finalizing milestone Nov 6, 2021
@vercel
Copy link
Copy Markdown

vercel Bot commented Nov 6, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/libvery/capstone-react-libvery/8vmQcJu72bXeEnriPrCxjhL4jxCW
✅ Preview: https://capstone-react-libvery-git-rawanddev-issue86-libvery.vercel.app

@RawandDev RawandDev linked an issue Nov 6, 2021 that may be closed by this pull request
isHalf={true}
value={currentRating}
onChange={(newR) => setRating(newR)}
/>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The user shouldn't be able to rate if he's not signed in, but he could see the rates only

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is already implemented

Comment thread src/components/BookCard.jsx Outdated
value={currentRating}
onChange={(newR) => setRating(newR)}
/>
<span className="pl-1 mt-1">{currentRating}(5)</span>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to add this 👉🏼 "(5)", we already have just 5 stars so the user knows it's whatever/5

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add rating to books

2 participants