PanelEditorTabs: adds counter to Query, Alert and Transform (#23645)

This commit is contained in:
Hugo Häggmark
2020-04-17 14:46:32 +02:00
committed by GitHub
parent 89c8855f9d
commit ed8c3430c4
2 changed files with 19 additions and 2 deletions

View File

@@ -67,7 +67,7 @@ export const Tab: FC<TabProps> = ({ label, active, icon, onChangeTab, counter })
<li className={cx(tabsStyles.tabItem, active && tabsStyles.activeStyle)} onClick={onChangeTab}>
{icon && <Icon name={icon} />}
{label}
{!!counter && <Counter value={counter} />}
{typeof counter === 'number' && <Counter value={counter} />}
</li>
);
};