mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-19 18:02:13 +00:00
refactor(ActionButton): remove title when tooltip
This commit is contained in:
parent
bd84e63a36
commit
0bccde3a97
1 changed files with 1 additions and 1 deletions
|
|
@ -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'} />
|
||||
|
|
|
|||
Loading…
Reference in a new issue