ui: fix tab name lookup
This commit is contained in:
parent
42dd341e6c
commit
890630dfa0
1 changed files with 2 additions and 2 deletions
|
|
@ -3,12 +3,12 @@ import { Tooltip } from 'antd';
|
|||
import { observer } from 'mobx-react-lite';
|
||||
import { PlayerContext } from 'Components/Session/playerContext';
|
||||
|
||||
function TabTag({ logSource }: { logSource: number; logTabId: string }) {
|
||||
function TabTag({ logSource, logTabId }: { logSource: number; logTabId: string }) {
|
||||
const { store } = React.useContext(PlayerContext);
|
||||
const { tabNames } = store.get();
|
||||
|
||||
return (
|
||||
<Tooltip title={`${tabNames[logSource] ?? `Tab ${logSource}`}`} placement="left">
|
||||
<Tooltip title={`${tabNames[logTabId] ?? `Tab ${logSource}`}`} placement="left">
|
||||
<div
|
||||
className={
|
||||
'bg-gray-light rounded-full min-w-5 min-h-5 w-5 h-5 flex items-center justify-center text-xs cursor-default'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue