From ce064dcc22439ed40abc207e68b0c6fb62906135 Mon Sep 17 00:00:00 2001 From: prescottprue Date: Mon, 29 May 2017 09:56:22 -0700 Subject: [PATCH] Fixed typo in connect docs * fixes #141, #145 --- docs/api/connect.md | 2 +- src/connect.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api/connect.md b/docs/api/connect.md index f4519e581..d19f7d30d 100644 --- a/docs/api/connect.md +++ b/docs/api/connect.md @@ -33,7 +33,7 @@ const fbWrapped = firebaseConnect([ // pass todos list from redux as this.props.todosList export default connect(({ firebase }) => ({ todosList: dataToJS(firebase, 'todos'), - profile: pathToJS(firebase, 'profile'), // pass profile data as this.props.proifle + profile: pathToJS(firebase, 'profile'), // pass profile data as this.props.profile auth: pathToJS(firebase, 'auth') // pass auth data as this.props.auth }))(fbWrapped) ``` diff --git a/src/connect.js b/src/connect.js index d55d9395f..5600f128b 100644 --- a/src/connect.js +++ b/src/connect.js @@ -27,7 +27,7 @@ import { getEventsFromInput, createCallable } from './utils' * // pass todos list from redux as this.props.todosList * export default connect(({ firebase }) => ({ * todosList: dataToJS(firebase, 'todos'), - * profile: pathToJS(firebase, 'profile'), // pass profile data as this.props.proifle + * profile: pathToJS(firebase, 'profile'), // pass profile data as this.props.profile * auth: pathToJS(firebase, 'auth') // pass auth data as this.props.auth * }))(fbWrapped) */