srf-feathers 1.8.4 → 1.8.5
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/build/index.esm.js +2 -1
- package/build/index.esm.js.map +1 -1
- package/build/index.js +2 -1
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.esm.js
CHANGED
|
@@ -3473,9 +3473,10 @@ const AppSwitcher = ({ modifier, currentBirdId, currentPortal = 'news', phase =
|
|
|
3473
3473
|
setOpen(!open);
|
|
3474
3474
|
};
|
|
3475
3475
|
const birdselection = birds.filter((bird) => bird.id !== currentBirdId);
|
|
3476
|
+
const currentBird = birds.find((bird) => bird.id === currentBirdId);
|
|
3476
3477
|
return (jsxs("div", { role: "button", tabIndex: 0, className: classNames('f-app-switcher', modifier, {
|
|
3477
3478
|
'f-app-switcher--unclickable': disabled,
|
|
3478
|
-
}), ref: dropdownButtonRef, onClick: handleDropdownPanelClick, onKeyDown: handleDropdownPanelClick, children: [jsx("div", { className: "f-app-switcher__button-container", children: jsx(Button, { onClick: onCaretClick, modifier: ['unobtrusive', 'tiny'], icon: jsx(Logo, { bird: currentBirdId }), children: !disabled && (jsx("span", { className: "f-app-switcher__caret-fixer", children: jsx(CaretIcon, { modifier: ['tiny', 'rotatable', open ? 'rotated-180' : null] }) })) }) }), open && (jsx("div", { className: "f-app-switcher__dropdown", children: jsx(DropdownPane, { ref: dropdownPanelRef, modifier: "open_to_right", children: jsx("div", { className: "f-app-switcher__birds", children:
|
|
3479
|
+
}), ref: dropdownButtonRef, onClick: handleDropdownPanelClick, onKeyDown: handleDropdownPanelClick, children: [jsx("div", { className: "f-app-switcher__button-container", children: jsx(Button, { onClick: onCaretClick, modifier: ['unobtrusive', 'tiny'], icon: jsx(Logo, { bird: currentBirdId }), title: `${currentBird?.label} (${currentBird?.hint})`, children: !disabled && (jsx("span", { className: "f-app-switcher__caret-fixer", children: jsx(CaretIcon, { modifier: ['tiny', 'rotatable', open ? 'rotated-180' : null] }) })) }) }), open && (jsx("div", { className: "f-app-switcher__dropdown", children: jsx(DropdownPane, { ref: dropdownPanelRef, modifier: "open_to_right", children: jsx("div", { className: "f-app-switcher__birds", children:
|
|
3479
3480
|
//check if children are passed and render them instead of the birds
|
|
3480
3481
|
children
|
|
3481
3482
|
? children
|