diff --git a/src/common/layout/optima/bar/OptimaBarDropdown.tsx b/src/common/layout/optima/bar/OptimaBarDropdown.tsx index fbe714525..6c0c5d0a7 100644 --- a/src/common/layout/optima/bar/OptimaBarDropdown.tsx +++ b/src/common/layout/optima/bar/OptimaBarDropdown.tsx @@ -135,7 +135,7 @@ function OptimaBarDropdown(props: { listboxOpen={listboxOpen} onListboxOpenChange={(isOpen) => { if (isOpen !== listboxOpen) - setListboxOpen(isOpen) + setListboxOpen(isOpen); }} indicator={} slotProps={selectSlotProps} @@ -156,6 +156,20 @@ function OptimaBarDropdown(props: { {itemsKeys.map((_itemKey: string, idx: number) => { const _item = props.items[_itemKey]; const isActive = _itemKey === props.value; + + // Label & Decorators + let label = _item.title || ''; + let decorator: React.ReactNode = null; + if (props.showSymbols) { + if (_item.icon) { + decorator = {_item.icon}; + } else if (_item.symbol !== undefined) { + decorator = {_item.symbol || ''}; + if (_item.symbol) + label = `${_item.symbol} ${label}`; + } + } + return _item.type === 'separator' ? ( {/**/} @@ -164,13 +178,9 @@ function OptimaBarDropdown(props: { {/**/} ) : ( -