Explore: adds a ref to responsive button

This commit is contained in:
Łukasz Siatka 2019-10-15 11:18:18 +02:00 committed by Lukas Siatka
parent 231e620f95
commit 1cc1e545a0

View File

@ -31,6 +31,7 @@ export const ResponsiveButton = forwardRef<HTMLButtonElement, Props>((props, ref
className={`btn navbar-button ${buttonClassName ? buttonClassName : ''}`}
onClick={onClick}
disabled={disabled || false}
ref={ref}
>
{iconClassName && iconSide === IconSide.left ? <i className={`${iconClassName}`} /> : null}
<span className="btn-title">{!splitted ? formatBtnTitle(title, iconSide) : ''}</span>