Explore: adds a ref to responsive button

This commit is contained in:
Łukasz Siatka
2019-11-21 15:06:16 +01:00
committed by Lukas Siatka
parent 231e620f95
commit 1cc1e545a0
@@ -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>