prevent clicking through help links

This commit is contained in:
Sean Yesmunt 2020-10-12 17:32:46 -04:00
parent 88c86ff447
commit 4b98cf45f3

View file

@ -14,6 +14,11 @@ export default function HelpLink(props: Props) {
const { href, navigate, icon, description } = props;
return (
<Button
onClick={e => {
if (href) {
e.stopPropagation();
}
}}
className="icon--help"
icon={icon || ICONS.HELP}
description={description || __('Help')}