diff --git a/scm-ui-components/packages/ui-components/src/Tag.js b/scm-ui-components/packages/ui-components/src/Tag.js index 9a3810e9ba..00d11696c8 100644 --- a/scm-ui-components/packages/ui-components/src/Tag.js +++ b/scm-ui-components/packages/ui-components/src/Tag.js @@ -7,7 +7,8 @@ type Props = { color?: string, icon?: string, label: string, - title?: string + title?: string, + onClick?: () => void }; class Tag extends React.Component { @@ -16,7 +17,7 @@ class Tag extends React.Component { }; render() { - const { icon, label, title, color, className } = this.props; + const { className, color, icon, label, title, onClick } = this.props; let showIcon = null; if (icon) { showIcon = ( @@ -30,6 +31,7 @@ class Tag extends React.Component { {showIcon} {label}