import React from 'react';
import PropTypes from 'prop-types';
import withRoot from '../../utils/withRoot';
import AppFrame from '../../components/AppFrame';
import AppContent from '../../components/AppContent';
import QuestionCreateForm from '../../components/Question/CreateForm';
import { compose } from 'recompose';
import { withRouter } from 'next/router';

const PageQuestionCreate = ({ router }) => (
  <AppFrame>
    <AppContent>
      <QuestionCreateForm id={router.query.id} />
    </AppContent>
  </AppFrame>
);

PageQuestionCreate.propTypes = {
  router: PropTypes.object.isRequired,
};

export default compose(
  withRoot,
  withRouter,
)(PageQuestionCreate);

@@ -24,44 +24,8 @@
 t';%0A
-import PropTypes from 'prop-types';%0A
 impo
@@ -243,87 +243,8 @@
 rm';
-%0Aimport %7B compose %7D from 'recompose';%0Aimport %7B withRouter %7D from 'next/router';
 %0A%0Aco
@@ -273,18 +273,8 @@
  = (
-%7B router %7D
 ) =%3E
@@ -335,29 +335,8 @@
 Form
- id=%7Brouter.query.id%7D
  /%3E%0A
@@ -375,135 +375,31 @@
 );%0A%0A
-PageQuestionCreate.propTypes = %7B%0A  router: PropTypes.object.isRequired,%0A%7D;%0A%0Aexport default compose(%0A  withRoot,%0A  withRouter,%0A)
+export default withRoot
 (Pag

Remove withRouter from PageQuestionCreate