Skip to content

Commit 6adeb76

Browse files
Devasycoderabbitai[bot]Delinkelin
authored
Implement friends balance retrieval and enhance HomeScreen actions (#114)
* feat: Implement friends balance retrieval and display in FriendsScreen; enhance balance calculation logic * feat: Update HomeScreen header to include group creation and joining actions; remove redundant buttons * Remove package.json from frontend directory to clean up unused dependencies * 📝 CodeRabbit Chat: Add comprehensive Jest unit tests for API, utils, and screen components * Revert "📝 CodeRabbit Chat: Add comprehensive Jest unit tests for API, utils, and screen components" This reverts commit df45073. --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: patel.devasy.23 <[email protected]>
1 parent 6faafc6 commit 6adeb76

File tree

7 files changed

+92
-4623
lines changed

7 files changed

+92
-4623
lines changed

frontend/api/groups.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,11 @@ export const getUserBalanceSummary = (token) => {
8282
},
8383
});
8484
};
85+
86+
export const getFriendsBalance = (token) => {
87+
return apiClient.get('/users/me/friends-balance', {
88+
headers: {
89+
Authorization: `Bearer ${token}`,
90+
},
91+
});
92+
};

0 commit comments

Comments
 (0)