From 331ae0ca38b442b45e229a032a3a0fb97c92a1c8 Mon Sep 17 00:00:00 2001 From: mgabdev <> Date: Tue, 4 Feb 2020 21:25:33 -0500 Subject: [PATCH] Edits for chat button --- app/javascript/gabsocial/components/icon_button.js | 3 +++ .../gabsocial/features/account/components/header.js | 12 ++++++++++-- config/initializers/content_security_policy.rb | 8 ++++---- 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/app/javascript/gabsocial/components/icon_button.js b/app/javascript/gabsocial/components/icon_button.js index e30702d1..bfc10db8 100644 --- a/app/javascript/gabsocial/components/icon_button.js +++ b/app/javascript/gabsocial/components/icon_button.js @@ -23,6 +23,7 @@ export default class IconButton extends React.PureComponent { animate: PropTypes.bool, overlay: PropTypes.bool, tabIndex: PropTypes.string, + type: PropTypes.string, }; static defaultProps = { @@ -64,6 +65,7 @@ export default class IconButton extends React.PureComponent { pressed, tabIndex, title, + type, } = this.props; const classes = classNames(className, 'icon-button', { @@ -106,6 +108,7 @@ export default class IconButton extends React.PureComponent { style={style} tabIndex={tabIndex} disabled={disabled} + type={type} >