Kanika637 / amazon-clone

Clone of Amazon Website
MIT License
89 stars 100 forks source link

#56 search functionality #151

Closed mecskyverse closed 1 year ago

mecskyverse commented 1 year ago

Description

Fixes: #56 To add Search Functionality I have to change the basic programming of the clone project.

  1. The main problem is that you have to store the Product details in some kind of data type like an array so that we can filter that array according to our search input. So, I have made a different file Called ProductData.js in which I have stored all the product data.
  2. After storing the data in an array of objects form I have to change Home.css because this project was using the flex method and dividing the products into parts of three but now I have to convert them into a form of grid.

https://www.loom.com/share/bdd5a7a031654efebfb465ea3d5310c8

Type of change

Checklist:


ATTACH SCREEN-SHOTS / DEPLOYMENT LINK:

mecskyverse commented 1 year ago

@Kanika637 you can review the search Functionality and if you face any problem while understanding in my approach then I can try to explain at discord or something.

mecskyverse commented 1 year ago

LGTM🚀 Great Work @mecskyverse 🚀 Merging your PR🚀

Thanks, @Kanika637 currently it's not working for other categories because I have to convert data into array. I will do it in a separate issue.