ref(always-on-top): refactor to stop using old toolbar components

This commit is contained in:
Leonard Kim
2018-04-12 14:14:14 -07:00
committed by Saúl Ibarra Corretgé
parent be78ab5317
commit 5cf16a20d3
4 changed files with 215 additions and 108 deletions

View File

@@ -53,11 +53,13 @@ class ToolbarButton extends AbstractToolbarButton {
aria-label = { this.props.accessibilityLabel }
className = 'toolbox-button'
onClick = { this.props.onClick }>
<Tooltip
description = { this.props.tooltip }
position = { this.props.tooltipPosition }>
{ children }
</Tooltip>
{ this.props.tooltip
? <Tooltip
description = { this.props.tooltip }
position = { this.props.tooltipPosition }>
{ children }
</Tooltip>
: children }
</div>
);
}