ui: fix tab name lookup

This commit is contained in:
nick-delirium 2024-12-10 12:05:26 +01:00
parent 42dd341e6c
commit 890630dfa0
No known key found for this signature in database
GPG key ID: 93ABD695DF5FDBA0

View file

@ -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'