diff --git a/app/soapbox/components/__tests__/column_back_button.test.js b/app/soapbox/components/__tests__/column_back_button.test.js deleted file mode 100644 index 6ebc95f40..000000000 --- a/app/soapbox/components/__tests__/column_back_button.test.js +++ /dev/null @@ -1,12 +0,0 @@ -import React from 'react'; - -import { render, screen } from '../../jest/test-helpers'; -import ColumnBackButton from '../column_back_button'; - -describe('', () => { - it('renders correctly', () => { - render(); - - expect(screen.getByRole('button')).toHaveTextContent('Back'); - }); -}); diff --git a/app/soapbox/components/column_back_button.js b/app/soapbox/components/column_back_button.js deleted file mode 100644 index 75d526992..000000000 --- a/app/soapbox/components/column_back_button.js +++ /dev/null @@ -1,41 +0,0 @@ -import PropTypes from 'prop-types'; -import React from 'react'; -import { FormattedMessage } from 'react-intl'; -import { withRouter } from 'react-router-dom'; - -import Icon from 'soapbox/components/icon'; - -export default @withRouter -class ColumnBackButton extends React.PureComponent { - - static propTypes = { - to: PropTypes.string, - history: PropTypes.object, - }; - - handleClick = () => { - const { to } = this.props; - - if (window.history?.length === 1) { - this.props.history.push(to ? to : '/'); - } else { - this.props.history.goBack(); - } - } - - handleKeyUp = (e) => { - if (e.key === 'Enter') { - this.handleClick(); - } - } - - render() { - return ( - - ); - } - -} diff --git a/app/soapbox/features/chats/chat_room.js b/app/soapbox/features/chats/chat_room.js index 5ea275b5e..4d9140650 100644 --- a/app/soapbox/features/chats/chat_room.js +++ b/app/soapbox/features/chats/chat_room.js @@ -77,7 +77,6 @@ class ChatRoom extends ImmutablePureComponent { return ( {/*
-