Feature fetch CustomerProfile data
還沒有人認領這個 Issue。
評估
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 新手友好度
- 55/100
- Issue 類型
- 功能
- 描述清晰度
- 描述清楚
- 活躍度
- 停滯
- 技術堆疊
- javascript, react
- 領域
- frontend
研究方向
檢查相依項目 #20 和 CustomerProfile 元件,然後追蹤表格的 "Show profile" 按鈕。使用選取的 ID 呼叫指定的 customer endpoint,並驗證按下按鈕時,個人資料是否在清單中顯示 ID、電子郵件、VIP 狀態和電話號碼。
由索引模型根據 Issue 內容生成。
描述
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.
- 主要語言
- JavaScript
- 星號
- 1
- 分支
- 28
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 沒有貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
CodeYourFuture/React-Module-Project 的其他 Issue
-
♟️ Dependent ticket 🏕 Priority Mandatory 🐇 Size Small 📅 Week 3 📅 Week 4
難度 2/5 1-3 小時 新手友好度 65/100
-
🏕 Priority Mandatory 🐂 Size Medium 📅 Week 4 🧩 Feature
難度 2/5 1-3 小時 新手友好度 65/100
-
🐂 Size Medium 📅 Week 3 🧩 Feature
難度 2/5 1-3 小時 新手友好度 65/100
-
🏝️ Priority Stretch 🐂 Size Medium 📅 Week 2 🧩 Feature
難度 2/5 1-3 小時 新手友好度 65/100
-
🏕 Priority Mandatory 🐇 Size Small 📅 Week 2 🧩 Feature
難度 1/5 1 小時以內 新手友好度 68/100
查看 CodeYourFuture/React-Module-Project 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 66/100
維護者通常 3 天內回覆
-
audit.md numbers Theming and Responsive Design differently in the headings and the score table可能已有人在做 @pbakaus 今天認領。 未關閉needs triage
難度 1/5 1 小時以內 新手友好度 90/100
pbakaus/impeccable#979 ·
維護者通常 1 天內回覆
-
area/web interface
難度 2/5 1-3 小時 新手友好度 78/100
mastodon/mastodon#40924 · 1 則留言 ·
維護者通常 1 天內回覆
-
fireEvent.select does not wrap its automatic native focus in act可能已有人在做 @sergioperezcheco 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 88/100
-
bug user-priority/P2
難度 1/5 1 小時以內 新手友好度 92/100
維護者通常 1 天內回覆