Skip to content

Commit

Permalink
refactor: use compose
Browse files Browse the repository at this point in the history
  • Loading branch information
rwieruch committed Dec 13, 2018
1 parent 92c5ac6 commit 301f4b5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/SignUp/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { Component } from 'react';
import { Link, withRouter } from 'react-router-dom';
import { compose } from 'recompose';

import { withFirebase } from '../Firebase';
import * as ROUTES from '../../constants/routes';
Expand Down Expand Up @@ -153,7 +154,10 @@ const SignUpLink = () => (
</p>
);

const SignUpForm = withRouter(withFirebase(SignUpFormBase));
const SignUpForm = compose(
withRouter,
withFirebase,
)(SignUpFormBase);

export default SignUpPage;

Expand Down

0 comments on commit 301f4b5

Please sign in to comment.