From the course: Next.js Ecommerce: Build a Shopping Platform from Scratch

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

User edit page

User edit page

Alright, so now we want to add the edit page or the update page for users now I notice that right now if I click on the edit here, it takes me to admin slash admin slash users So the reason for that is here in the edit link I didn't add a forward slash in front of admin and you want to just make sure that you do that Okay, so if you ever have that problem where it repeats something like that just make sure you have the forward slash in the beginning Okay, now as far as this page goes, not this one, but the one with one admin, so now it goes to admin users and then the ID. We want to create a page for that, so let's go to app admin users and then let's create a folder in users called brackets ID, just like we did for orders and products. And then in that, we want to have a new file called page.tsx. And let's call this, what should we call this, admin user update page. And just for now, let's output something here. We'll just say update, save that, and now we should see it on that page.…

Contents