Skip to content

Commit 301f4b5

Browse files
committed
refactor: use compose
1 parent 92c5ac6 commit 301f4b5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/SignUp/index.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React, { Component } from 'react';
22
import { Link, withRouter } from 'react-router-dom';
3+
import { compose } from 'recompose';
34

45
import { withFirebase } from '../Firebase';
56
import * as ROUTES from '../../constants/routes';
@@ -153,7 +154,10 @@ const SignUpLink = () => (
153154
</p>
154155
);
155156

156-
const SignUpForm = withRouter(withFirebase(SignUpFormBase));
157+
const SignUpForm = compose(
158+
withRouter,
159+
withFirebase,
160+
)(SignUpFormBase);
157161

158162
export default SignUpPage;
159163

0 commit comments

Comments
 (0)