@rpg-engine/long-bow 0.6.68 → 0.6.69

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28903,10 +28903,19 @@ var FriendList = function FriendList(_ref) {
28903
28903
  onSendFriendRequest = _ref.onSendFriendRequest,
28904
28904
  onRemoveFriend = _ref.onRemoveFriend,
28905
28905
  onOpenPrivateMessage = _ref.onOpenPrivateMessage,
28906
- onRejectRequest = _ref.onRejectRequest;
28906
+ onRejectRequest = _ref.onRejectRequest,
28907
+ onAddFriend = _ref.onAddFriend,
28908
+ onBackFriendList = _ref.onBackFriendList;
28907
28909
  var _useState = useState(false),
28908
28910
  isAddFriendUI = _useState[0],
28909
28911
  setIsAddFriendUI = _useState[1];
28912
+ useEffect(function () {
28913
+ if (isAddFriendUI) {
28914
+ onAddFriend == null ? void 0 : onAddFriend();
28915
+ } else {
28916
+ onBackFriendList == null ? void 0 : onBackFriendList();
28917
+ }
28918
+ }, [isAddFriendUI]);
28910
28919
  return React.createElement(ListWrapper, null, isAddFriendUI ? React.createElement(SearchFriend, {
28911
28920
  searchedCharacters: searchedCharacters,
28912
28921
  onSendFriendRequest: onSendFriendRequest,