Skip to content
Snippets Groups Projects
Commit d75d2a9f authored by takayamaki's avatar takayamaki Committed by Eugen Rochko
Browse files

fix ColumnBackButtonSlim should extended from ColumnBackButton (#6417)

parent f7bf36d8
No related branches found
No related tags found
No related merge requests found
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 (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment