CodeYourFuture / CodeYourFuture/React-Module-Project

Feature fetch CustomerProfile data

未关闭
#21 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
♟️ Dependent ticket 🏕 Priority Mandatory 🐇 Size Small 📅 Week 3
主要语言
JavaScript
星标
1
派生
28
PR 合并指标
30 天内没有已合并 PR

描述

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/` in the `` 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.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。