-
Notifications
You must be signed in to change notification settings - Fork 12
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
Create a User Dashboard component #3
Comments
Hey @kunaljain0212 can you assign me this work? |
Sure go ahead! |
Hey I have seen the project files but I am unable to understand from where I have to fetch the user name and email, so can you please help me. |
https://github.com/kunaljain0212/Apni-Dukaan-Backend/blob/master/routes/user.js |
Is someone working on this currently? can I pick this up? |
Sure go ahead! @khush021 |
If you are facing problem in setting up the backend then you can use this link: |
Is there any issue with the backend because these APIs are not returning any response |
The backend is designed such that you'll have to use /api before accessing any route. |
okay got it |
Can you please guide me how to pass values from one component to another. I am trying to use access name and email from signIn to userDashboard |
For a signed in user we have a middleware which sets a property user in the req object whenever any restricted route is accessed. So what you can do is make the user dashboard a restricted route which it practically should be and then just fetch the user details from the user property of the req object. |
got it |
I raised a request, can you please review it |
@khush021 Can you give the component a bit of styling? If not please open an issue for the same. |
created issue |
A file already exists in the user folder for userDashboard.
Edit that component and display the user's email and name.
The text was updated successfully, but these errors were encountered: