@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.
@@ -15,6 +15,8 @@ interface IFriendListProps {
15
15
  onSearch: (characterName: string) => void;
16
16
  onAcceptRequest: (character: IFriend) => void;
17
17
  onRejectRequest: (character: IFriend) => void;
18
+ onAddFriend?: () => void;
19
+ onBackFriendList?: () => void;
18
20
  }
19
21
  export declare const FriendList: React.FC<IFriendListProps>;
20
22
  export {};
@@ -28909,10 +28909,19 @@ var FriendList = function FriendList(_ref) {
28909
28909
  onSendFriendRequest = _ref.onSendFriendRequest,
28910
28910
  onRemoveFriend = _ref.onRemoveFriend,
28911
28911
  onOpenPrivateMessage = _ref.onOpenPrivateMessage,
28912
- onRejectRequest = _ref.onRejectRequest;
28912
+ onRejectRequest = _ref.onRejectRequest,
28913
+ onAddFriend = _ref.onAddFriend,
28914
+ onBackFriendList = _ref.onBackFriendList;
28913
28915
  var _useState = React.useState(false),
28914
28916
  isAddFriendUI = _useState[0],
28915
28917
  setIsAddFriendUI = _useState[1];
28918
+ React.useEffect(function () {
28919
+ if (isAddFriendUI) {
28920
+ onAddFriend == null ? void 0 : onAddFriend();
28921
+ } else {
28922
+ onBackFriendList == null ? void 0 : onBackFriendList();
28923
+ }
28924
+ }, [isAddFriendUI]);
28916
28925
  return React__default.createElement(ListWrapper, null, isAddFriendUI ? React__default.createElement(SearchFriend, {
28917
28926
  searchedCharacters: searchedCharacters,
28918
28927
  onSendFriendRequest: onSendFriendRequest,