RentRipple / RentRipple-Frontend

MIT License
1 stars 0 forks source link

Integrate UI with Edit User Profile API #32

Open YashSahsani opened 3 weeks ago

YashSahsani commented 3 weeks ago

Description:

Integrate the Edit User Profile UI with the backend API to update user profile information. This integration should handle sending the updated profile data to the API and processing the response.

Acceptance Criteria:

  1. API Integration:
    • Connect the Edit Profile form to the PUT /api/user/profile endpoint.
  2. Handle API Responses:
    • Process API responses to provide feedback to the user.
  3. State Management:
    • Use Context API to manage the state of the user profile data.
  4. Error Handling:
    • Display error messages based on API response.

      Tasks:

  5. Connect Form to API:
    • Write the logic to send form data to the backend API.
  6. Process API Response:
    • Handle success and error responses from the API.
  7. Update State:
    • Use Context API to manage and update the user profile state.
  8. Provide User Feedback:
    • Display success or error messages based on API response.
  9. Testing:
    • Test the entire flow to ensure integration works correctly and handles edge cases.