steevejoseph / bazaar-frontend

Frontend
4 stars 0 forks source link

Ratings/comments #27

Closed nyashafrank closed 5 years ago

nyashafrank commented 5 years ago

Displays the services average rating. If no rating, then 0 stars appear. I'm using the package react-ratings-declarative. But, I keep getting this dotted underline message when I import it:

"Could not find a declaration file for module 'react-ratings-declarative'. 'c:/Users/Nyasha/bazaar-frontend/node_modules/react-ratings-declarative/build/index.js' implicitly has an 'any' type. Try npm install @types/react-ratings-declarative if it exists or add a new declaration (.d.ts) file containing declare module 'react-ratings-declarative'; [7016]"

But, I'm still able to use the components? idk lemme know if it shows up for you.

Also, users are able to rate and comment on a service. A list of users' comments are displayed. Right now, if a user submits a review, the page must be refreshed for their new comment to appear. Still working on success alert.

In create_review.js, I have a mapstatetoprops but I don't know what should go in there. I've just never seen a connect without a mapstatetoprops lol. so help plz.

Also, I want the list of users' reviews to be on the bottom left of the page and the "Create Review" on the bottom right. But, placing the two divs side by side isn't working out. Can someone pull thru and help ya homegirl out.