refactor(ActionButton): remove title when tooltip

This commit is contained in:
Tim 2023-10-17 16:57:51 +02:00
parent bd84e63a36
commit 0bccde3a97

View file

@ -10,7 +10,7 @@ const { Tooltip } = require('stremio/common/Tooltip');
const ActionButton = ({ className, icon, label, tooltip, ...props }) => {
return (
<Button title={label} {...props} className={classnames(className, styles['action-button-container'], { 'wide': typeof label === 'string' && !tooltip })}>
<Button title={tooltip ? '' : label} {...props} className={classnames(className, styles['action-button-container'], { 'wide': typeof label === 'string' && !tooltip })}>
{
tooltip === true ?
<Tooltip label={label} position={'top'} />