From 504f04c7be54bb8d73c5a362a8d93515cf922f52 Mon Sep 17 00:00:00 2001 From: mgabdev <> Date: Fri, 24 Jul 2020 18:55:56 -0500 Subject: [PATCH] Removed unused ColumnHeader component MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Removed: - unused ColumnHeader component --- .../gabsocial/components/column_header.js | 87 ------------------- 1 file changed, 87 deletions(-) delete mode 100644 app/javascript/gabsocial/components/column_header.js diff --git a/app/javascript/gabsocial/components/column_header.js b/app/javascript/gabsocial/components/column_header.js deleted file mode 100644 index ebe884d4..00000000 --- a/app/javascript/gabsocial/components/column_header.js +++ /dev/null @@ -1,87 +0,0 @@ -import Button from './button' -import Heading from './heading' -import TabBar from './tab_bar' - -export default class ColumnHeader extends PureComponent { - - static contextTypes = { - router: PropTypes.object, - } - - static propTypes = { - title: PropTypes.node, - showBackBtn: PropTypes.bool, - actions: PropTypes.array, - tabs: PropTypes.array, - } - - historyBack = () => { - if (window.history && window.history.length === 1) { - this.context.router.history.push('/home') - } else { - this.context.router.history.goBack() - } - } - - handleBackClick = () => { - this.historyBack() - } - - render() { - const { - title, - showBackBtn, - tabs, - actions, - } = this.props - - return ( -