diff options
author | takayamaki <fsgiko@gmail.com> | 2018-02-04 02:41:51 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2018-02-03 18:41:51 +0100 |
commit | d75d2a9f9960f08bbcacd4f5acb86243dbdb3179 (patch) | |
tree | 13cbd0d4e87ae261feba41fba535711a5c260d14 /app/javascript | |
parent | f7bf36d8fc5f8a7638a2cee215513c1dcd4f4a96 (diff) |
fix ColumnBackButtonSlim should extended from ColumnBackButton (#6417)
Diffstat (limited to 'app/javascript')
-rw-r--r-- | app/javascript/mastodon/components/column_back_button_slim.js | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/app/javascript/mastodon/components/column_back_button_slim.js b/app/javascript/mastodon/components/column_back_button_slim.js index 3b4f46d99..964c100be 100644 --- a/app/javascript/mastodon/components/column_back_button_slim.js +++ b/app/javascript/mastodon/components/column_back_button_slim.js @@ -1,17 +1,8 @@ import React from 'react'; import { FormattedMessage } from 'react-intl'; -import PropTypes from 'prop-types'; +import ColumnBackButton from './column_back_button'; -export default class ColumnBackButtonSlim extends React.PureComponent { - - static contextTypes = { - router: PropTypes.object, - }; - - handleClick = () => { - if (window.history && window.history.length === 1) this.context.router.history.push('/'); - else this.context.router.history.goBack(); - } +export default class ColumnBackButtonSlim extends ColumnBackButton { render () { return ( |