From b636f368715425889396f8b03dba9f34e583e6ad Mon Sep 17 00:00:00 2001 From: Developer <> Date: Thu, 11 Feb 2021 00:21:44 -0500 Subject: [PATCH] Added prop for openInNewTab in ListItem for Button links MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Added: - prop for openInNewTab in ListItem for Button links --- app/javascript/gabsocial/components/list_item.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/javascript/gabsocial/components/list_item.js b/app/javascript/gabsocial/components/list_item.js index bae96942..d8274f74 100644 --- a/app/javascript/gabsocial/components/list_item.js +++ b/app/javascript/gabsocial/components/list_item.js @@ -29,6 +29,7 @@ class ListItem extends React.PureComponent { isHidden, subtitle, isActive, + openInNewTab, } = this.props if (!title) { @@ -98,6 +99,7 @@ class ListItem extends React.PureComponent { href={href} onClick={!!onClick ? this.handleOnClick : undefined} className={containerClasses} + target={openInNewTab ? '_blank' : undefined} noClasses > @@ -173,6 +175,7 @@ ListItem.propTypes = { 'large', ]), hideArrow: PropTypes.bool, + openInNewTab: PropTypes.bool, } export default ListItem \ No newline at end of file