generated from CodeYourFuture/Module-Template
-
-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Labels
♟️ Dependent ticketThis ticket depends on something else being completed first this sprintThis ticket depends on something else being completed first this sprint🏕 Priority MandatoryThis work is expectedThis work is expected🐇 Size SmallAround an hourAround an hour📅 Week 3Assigned during Week 3 of this moduleAssigned during Week 3 of this module
Description
Display a customer profile - iteration 2
Depends on #20
Instructions:
When a "Show profile" button is clicked in the table, fetch the corresponding customer profile from https://cyf-react.glitch.me/customers/<ID>
in the <CustomerProfile />
component. A customer profile should show the customer ID, their email, if they are VIP and their phone number in a list.
Hint: You need to use useEffect
and the correct dependency array. You'll need to fetch customers data from the API every time a "Show profile" button is clicked and render it accordingly.
Test:
When you click on a "Show profile" button in the table, the corresponding customer profile is loaded and rendered on the screen.
Metadata
Metadata
Assignees
Labels
♟️ Dependent ticketThis ticket depends on something else being completed first this sprintThis ticket depends on something else being completed first this sprint🏕 Priority MandatoryThis work is expectedThis work is expected🐇 Size SmallAround an hourAround an hour📅 Week 3Assigned during Week 3 of this moduleAssigned during Week 3 of this module
Type
Projects
Status
📋 Backlog