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

added sort functionality to search and category page #106

Closed
wants to merge 1 commit into from
Closed

added sort functionality to search and category page #106

wants to merge 1 commit into from

Conversation

kanavmittal
Copy link

@roopeshsn
This commit resolves #104
Screenshot 2022-10-17 at 3 12 27 AM

@roopeshsn
Copy link
Owner

Hi, @kanavmittal Could you show the functionality through a screen recorded video?

@roopeshsn
Copy link
Owner

How it will look on mobile screens?

@kanavmittal
Copy link
Author

@roopeshsn sure

@kanavmittal
Copy link
Author

RPReplay_Final1666021470.MP4

@roopeshsn for mobile view

@kanavmittal
Copy link
Author

Screen.Recording.2022-10-17.at.9.18.34.PM.mov

@roopeshsn for desktop view

@kanavmittal
Copy link
Author

@roopeshsn anything needed?

@roopeshsn
Copy link
Owner

@roopeshsn anything needed?

Yeah

@kanavmittal kanavmittal reopened this Oct 22, 2022
Copy link
Owner

@roopeshsn roopeshsn left a comment

Choose a reason for hiding this comment

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

Kindly do the changes.

@@ -5,6 +5,7 @@ const Product = require('../models/productModel')
// @route GET /api/products
// @access Public
const getProducts = asyncHandler(async (req, res) => {
var sort_type, products
Copy link
Owner

Choose a reason for hiding this comment

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

We're using camelCase so, change all occurrences to camelCase. If it is a constant (sort_type) use this naming convention CONSTANT_NAME

Also, don't use var, use const or let. Format the code using the prettier command. Check the package.json file.

@roopeshsn
Copy link
Owner

Hey, @kanavmittal Are you not interested to get this PR merged?

@roopeshsn roopeshsn closed this Nov 1, 2022
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.

Create a Sort functionality
2 participants