@rpg-engine/long-bow 0.8.123 → 0.8.126
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.
- package/dist/long-bow.cjs.development.js +4 -4
- package/dist/long-bow.cjs.development.js.map +1 -1
- package/dist/long-bow.cjs.production.min.js +1 -1
- package/dist/long-bow.cjs.production.min.js.map +1 -1
- package/dist/long-bow.esm.js +4 -4
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Friends/FriendList.tsx +4 -2
package/dist/long-bow.esm.js
CHANGED
|
@@ -30920,7 +30920,7 @@ var FriendList = function FriendList(_ref) {
|
|
|
30920
30920
|
var _useState = useState(''),
|
|
30921
30921
|
characterName = _useState[0],
|
|
30922
30922
|
setCharacterName = _useState[1];
|
|
30923
|
-
var _useState2 = useState('friends'),
|
|
30923
|
+
var _useState2 = useState(friends.length > 0 ? 'friends' : 'search'),
|
|
30924
30924
|
activeTab = _useState2[0],
|
|
30925
30925
|
setActiveTab = _useState2[1];
|
|
30926
30926
|
useEffect(function () {
|
|
@@ -30984,11 +30984,11 @@ var FriendList = function FriendList(_ref) {
|
|
|
30984
30984
|
onAccept: onAcceptRequest,
|
|
30985
30985
|
onReject: onRejectRequest
|
|
30986
30986
|
}));
|
|
30987
|
-
var tabs = [{
|
|
30987
|
+
var tabs = [].concat(friends.length > 0 ? [{
|
|
30988
30988
|
id: 'friends',
|
|
30989
30989
|
title: "Friends (" + friends.length + ")",
|
|
30990
30990
|
content: friendsTabContent
|
|
30991
|
-
}, {
|
|
30991
|
+
}] : [], [{
|
|
30992
30992
|
id: 'search',
|
|
30993
30993
|
title: 'Search',
|
|
30994
30994
|
content: searchTabContent
|
|
@@ -30996,7 +30996,7 @@ var FriendList = function FriendList(_ref) {
|
|
|
30996
30996
|
id: 'requests',
|
|
30997
30997
|
title: "Requests (" + friendRequests.length + ")",
|
|
30998
30998
|
content: requestsTabContent
|
|
30999
|
-
}];
|
|
30999
|
+
}]);
|
|
31000
31000
|
return React.createElement(ListWrapper, null, React.createElement(InternalTabs, {
|
|
31001
31001
|
tabs: tabs,
|
|
31002
31002
|
activeTab: activeTab,
|