import React from 'react';
import { compose } from 'recompose';

import PasswordChangeForm from '../PasswordChange';
import {
  AuthUserContext,
  withAuthorization,
  withEmailVerification,
} from '../Session';

const AccountPage = () => (
  <AuthUserContext.Consumer>
    {authUser => (
      <div>
        <h1>Account: {authUser.email}</h1>
        <PasswordChangeForm />
      </div>
    )}
  </AuthUserContext.Consumer>
);

const condition = authUser => !!authUser;

export default compose(
  withEmailVerification,
  withAuthorization(condition),
)(AccountPage);

@@ -56,16 +56,57 @@
 ompose';
+%0Aimport %7B Link %7D from 'react-router-dom';
 %0A%0Aimport
@@ -245,16 +245,63 @@
 ession';
+%0Aimport * as ROUTES from '../constants/routes';
 %0A%0Aconst 
@@ -425,16 +425,16 @@
 l%7D%3C/h1%3E%0A
-
         
@@ -456,16 +456,108 @@
 Form /%3E%0A
+        %3Cbutton type=%22button%22%3E%3CLink to=%7BROUTES.DASHBOARD%7D%3EBack to dashboard%3C/Link%3E%3C/button%3E%0A
       %3C/

Add button to return to dashboard from account page.