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

Feature fetch CustomerProfile data #17

Closed
RbAvci opened this issue Feb 24, 2024 · 0 comments · Fixed by #52
Closed

Feature fetch CustomerProfile data #17

RbAvci opened this issue Feb 24, 2024 · 0 comments · Fixed by #52

Comments

@RbAvci
Copy link
Owner

RbAvci commented Feb 24, 2024

From React-Module-Project created by SallyMcGrath: CodeYourFuture#21

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.

@RbAvci RbAvci moved this to 📋 Backlog in React Module Project Mar 9, 2024
@RbAvci RbAvci moved this from 📋 Backlog to 🔖 Ready in React Module Project Mar 9, 2024
@RbAvci RbAvci moved this from 🔖 Ready to 🏗 In progress in React Module Project Mar 9, 2024
@RbAvci RbAvci moved this from 🏗 In progress to 📋 Backlog in React Module Project Mar 9, 2024
@fikretellek fikretellek moved this from 📋 Backlog to 🔖 Ready in React Module Project Mar 10, 2024
@fikretellek fikretellek moved this from 🔖 Ready to 🏗 In progress in React Module Project Mar 13, 2024
@fikretellek fikretellek moved this from 🏗 In progress to 👀 In review in React Module Project Mar 14, 2024
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in React Module Project Mar 14, 2024
@zelihapala zelihapala moved this from ✅ Done to 👀 In review in React Module Project Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 👀 In review
2 participants