This PR enhances the expense management feature by introducing balance-related components, fetching logic, and state management. It includes the following key changes:
Commits
feat: add BalanceCard component with balance display logic
Introduced the BalanceCard component to display individual user balances within the expense group.
feat: implement Balances component with balance fetching and rendering
Created the Balances component to fetch and render the balance information for expense groups.
feat: add getBalances function to fetch balances for expense groups
Implemented a getBalances function that retrieves balance data for specified expense groups.
feat: implement useBalances hook for fetching balances using React Query
Developed the useBalances custom hook to utilize React Query for efficient data fetching and caching of balances.
refactor: update ExpenseGroup component to include state management for balances
Refactored the ExpenseGroup component to manage balance state, ensuring seamless integration of the new balance features.
feat: add Balance and Balances interfaces for expense group management
Added Balance and Balances interfaces to balance.ts for better type definitions and clarity in managing expense group data.
Pull Request Description
Overview
This PR enhances the expense management feature by introducing balance-related components, fetching logic, and state management. It includes the following key changes:
Commits
feat: add BalanceCard component with balance display logic
BalanceCard
component to display individual user balances within the expense group.feat: implement Balances component with balance fetching and rendering
Balances
component to fetch and render the balance information for expense groups.feat: add getBalances function to fetch balances for expense groups
getBalances
function that retrieves balance data for specified expense groups.feat: implement useBalances hook for fetching balances using React Query
useBalances
custom hook to utilize React Query for efficient data fetching and caching of balances.refactor: update ExpenseGroup component to include state management for balances
ExpenseGroup
component to manage balance state, ensuring seamless integration of the new balance features.feat: add Balance and Balances interfaces for expense group management
Balance
andBalances
interfaces tobalance.ts
for better type definitions and clarity in managing expense group data.