Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 💥 Added more items to the in respect to issue #6 #23

Merged
merged 0 commits into from
Aug 21, 2022

Conversation

Omafovbe
Copy link

@Omafovbe Omafovbe commented Aug 19, 2022

Description
Added images and data for more books and updated the cart function to source images from public directory. Also, dynamically add the items to the home component

This PR fixes #6

  • Having just a few items for display to add to cart
  • dynamically getting the image to display
  • a little change but spaced the cart text from the total number of items in cart

Notes for Reviewers

@vercel
Copy link

vercel bot commented Aug 19, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
letsgoshop ✅ Ready (Inspect) Visit Preview Aug 21, 2022 at 3:55PM (UTC)

Copy link
Owner

@kamalbuilds kamalbuilds left a comment

Choose a reason for hiding this comment

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

The changes have been very Impressive 🥇
just to look at these minor details.

@@ -0,0 +1,202 @@
[
Copy link
Owner

Choose a reason for hiding this comment

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

I appreciate this moving to a new .json file helps in simplifing 💯


"name": "jQuery",
"tagName": "jquery",
"imgUrl": "jquery.png",
Copy link
Owner

Choose a reason for hiding this comment

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

how are these imgurl working ? without giving full http:.... url?

switch(action.type) {
case ADD_PRODUCT_BASKET:
productSelected = { ...state.products[action.payload]}
// productSelected = { ...state.products[action.payload] }
productSelected = { ...state.books.find(book => book.tagName === action.payload) };
Copy link
Owner

Choose a reason for hiding this comment

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

This is wondurful to add the new logic but At all other places we are using action.payload as arg , just for consistency comment the new logic and uncomment the older one .

@Omafovbe
Copy link
Author

Omafovbe commented Aug 20, 2022 via email

@kamalbuilds
Copy link
Owner

thanks @Omafovbe these details would be helpful to be put up in README.

@kamalbuilds
Copy link
Owner

Hey @Omafovbe were these changes merged to the main branch 🤔 I dont see them

@kamalbuilds kamalbuilds added bug Something isn't working invalid This doesn't seem right labels Sep 3, 2022
@Omafovbe
Copy link
Author

Omafovbe commented Sep 3, 2022 via email

@kamalbuilds
Copy link
Owner

@Omafovbe I dont see it there too new...master

Better please open a new PR for merging on the master branch .

@kamalbuilds
Copy link
Owner

I am eager to see your name in the contribitors list 😄

@kamalbuilds
Copy link
Owner

also @Omafovbe revert your last commit done on aug 21 master...Omafovbe:Lets-go-shop:add-more-items
by this command on the add to item branch

git reset --soft HEAD~1

and then open a PR against the master branch

as I dont know why you have merged your master branch to ur add to item branch only as per this master...Omafovbe:Lets-go-shop:add-more-items

@Omafovbe
Copy link
Author

Omafovbe commented Sep 3, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working invalid This doesn't seem right
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding more books in the app
2 participants