import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import Button from '../Button';
import Wrapper from './Wrapper';

function NotFound({ history }) {
  return (
    <Wrapper>
      <h1>404</h1>
      <h2>
        <FormattedMessage id="app.components.NotFoundPage.description" />
      </h2>
      <Button
        label="app.components.NotFoundPage.back"
        kind="back"
        onClick={e => {
          e.stopPropagation();

          history.goBack();
        }}
      />
    </Wrapper>
  );
}

NotFound.propTypes = {
  history: PropTypes.shape({
    goBack: PropTypes.func,
  }).isRequired,
};

export default NotFound;

@@ -504,15 +504,16 @@
 ory.
-goBack(
+push('/'
 );%0A 
@@ -614,14 +614,12 @@
     
-goBack
+push
 : Pr

Fix NotFound compo