Last active
September 10, 2021 12:33
-
-
Save Kolenov/c763a9d0bc9fc3359a90c97ceb563aac to your computer and use it in GitHub Desktop.
Revisions
-
Kolenov revised this gist
Sep 10, 2021 . No changes.There are no files selected for viewing
-
Kolenov revised this gist
Sep 10, 2021 . 1 changed file with 14 additions and 11 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,12 +1,15 @@ const enhance = R.compose( inject('store'), observer ) const AuthContent = (props => R.cond([ [R.equals(Page.signin), () => <SignIn {...props}/>], [R.equals(Page.signup), () => <SignUp {...props}/>], [R.equals(Page.confirm), () => <PasswordResetConfirm {...props}/>], [R.equals(Page.forgot), () => <PasswordReset {...props}/>], [R.equals(Page.edit), () => <PasswordEdit {...props}/>], [R.equals(Page.setPassword), () => <PasswordSet {...props}/>] ])(R.path(['uiStateStore', 'currentView'], props.store))) export default enhance(AuthContent) -
Kolenov created this gist
Sep 10, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ const AuthContent = R.compose( inject('store'), observer, R.curry(props => R.cond([ [R.equals(Page.signin), () => <SignIn {...props}/>], [R.equals(Page.signup), () => <SignUp {...props}/>], [R.equals(Page.confirm), () => <PasswordResetConfirm {...props}/>], [R.equals(Page.forgot), () => <PasswordReset {...props}/>], [R.equals(Page.edit), () => <PasswordEdit {...props}/>], [R.equals(Page.setPassword), () => <PasswordSet {...props}/>] ])(R.path(['uiStateStore', 'currentView'], props.store))) )