Highlight snip button when active

pull/10616/head
Alex P 2017-07-25 11:00:08 -07:00
parent 0da89e1707
commit fe157520aa
1 changed files with 7 additions and 1 deletions

View File

@ -83,7 +83,13 @@ const DygraphLegend = ({
> >
<span className="icon search" /> <span className="icon search" />
</button> </button>
<button className="btn btn-default btn-sm" onClick={onSnip}> <button
className={classnames('btn btn-sm', {
'btn-default': !isSnipped,
'btn-primary': isSnipped,
})}
onClick={onSnip}
>
Snip Snip
</button> </button>
</div> </div>