From 02ca61f6690247cd5e7f1aba670419d2a906e4da Mon Sep 17 00:00:00 2001 From: mgabdev <> Date: Mon, 23 Mar 2020 18:26:05 -0400 Subject: [PATCH 1/8] Updated chat in profile - Chat in profile now directs to private message with user --- .../gabsocial/components/icon_button.js | 3 +++ .../features/account/components/header.js | 16 ---------------- 2 files changed, 3 insertions(+), 16 deletions(-) diff --git a/app/javascript/gabsocial/components/icon_button.js b/app/javascript/gabsocial/components/icon_button.js index bfc10db8..4bdef3fa 100644 --- a/app/javascript/gabsocial/components/icon_button.js +++ b/app/javascript/gabsocial/components/icon_button.js @@ -36,6 +36,8 @@ export default class IconButton extends React.PureComponent { }; handleClick = (e) => { + if (!this.props.onClick) return; + e.preventDefault(); if (!this.props.disabled) { @@ -89,6 +91,7 @@ export default class IconButton extends React.PureComponent { style={style} tabIndex={tabIndex} disabled={disabled} + type={type} >