Closed Homvi closed 4 weeks ago
Refactor and Enhance Expense Management Features
getExpenses
react-query
getExpenseGroup
useExpenseGroup
getCategories
useCategories
ExpenseGroup
Expenses
Balances
onSubmit
Refactor and Enhance Expense Management Features
getExpenses
function to streamline code.react-query
for improved data fetching:getExpenseGroup
function to fetch a specific expense group by ID.useExpenseGroup
hook to utilize React Query for fetching expense groups.getCategories
function to retrieve categories from the server.useCategories
hook for category fetching with React Query.ExpenseGroup
component to utilize the newuseExpenseGroup
hook.Expenses
component to leverage theuseCategories
hook for data fetching.Balances
component by renaming variables for better understanding.onSubmit
function with updated comments.