diff --git a/app/components/button.js b/app/components/button.js index 79c979a4..e34212d6 100644 --- a/app/components/button.js +++ b/app/components/button.js @@ -4,16 +4,7 @@ import React from 'react' import styled from 'styled-components' const BaseButton = styled.button.attrs(props => ({ - ...props, - onClick: props => { - if (props.trigger) { - return function (e) { - e.stopPropagation() - props.trigger.apply(this, [e]) - } - } - return undefined - } + ...props }))` text-transform: uppercase; letter-spacing: 0.025em; diff --git a/app/components/finder-button.js b/app/components/finder-button.js index a69cc8d2..1bbaedf1 100644 --- a/app/components/finder-button.js +++ b/app/components/finder-button.js @@ -10,7 +10,10 @@ const FinderButton = ({ dat, onClick }) => ( } className='row-action btn-finder' - trigger={() => shell.openExternal(`file://${resolve(dat.path)}`, () => {})} + onClick={(ev) => { + ev.stopPropagation() + shell.openExternal(`file://${resolve(dat.path)}`, () => {}) + }} /> )