CodeYourFuture / CodeYourFuture/React-Module-Project

Feature fetch CustomerProfile data

Đang mở
#21 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
♟️ Dependent ticket 🏕 Priority Mandatory 🐇 Size Small 📅 Week 3
Ngôn ngữ chính
JavaScript
Star
1
Fork
28
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.