Skip to content

Commit 54db50b

Browse files
committed
change store to state when mapping state to props
1 parent dc5ff14 commit 54db50b

File tree

10 files changed

+19
-19
lines changed

10 files changed

+19
-19
lines changed

src/components/SubscriptionsSuccess.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ export const SubscriptionsSuccess = props => {
4343
)
4444
}
4545

46-
const mapStateToProps = (store, ownProps) => ({
46+
const mapStateToProps = (state, ownProps) => ({
4747
cookies: ownProps.cookies,
48-
error: store.error
48+
error: state.error
4949
})
5050
export default connect(
5151
mapStateToProps

src/containers/EventInfo.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ export class EventInfo extends Component {
3434
}
3535
}
3636

37-
const mapStateToProps = (store, ownProps) => ({
38-
events: store.event,
39-
event: store.eventInfo
37+
const mapStateToProps = (state, ownProps) => ({
38+
events: state.event,
39+
event: state.eventInfo
4040
})
4141
export default connect(
4242
mapStateToProps,

src/containers/EventsList.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export class EventsList extends Component {
3939
}
4040
}
4141

42-
const mapStateToProps = store => ({ events: store.events })
42+
const mapStateToProps = state => ({ events: state.events })
4343
export default connect(
4444
mapStateToProps,
4545
{ fetchEvents, setLastLocation }

src/containers/LogIn.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ export class LogIn extends Component {
9595
}
9696
}
9797

98-
const mapStateToProps = (store, ownProps) => ({
99-
loggedInUser: store.loggedInUser,
100-
lastLocation: store.lastLocation,
98+
const mapStateToProps = (state, ownProps) => ({
99+
loggedInUser: state.loggedInUser,
100+
lastLocation: state.lastLocation,
101101
cookies: ownProps.cookies
102102
})
103103
export default connect(

src/containers/ProjectInfo.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ export class ProjectInfo extends Component {
3434
}
3535
}
3636

37-
const mapStateToProps = (store, ownProps) => ({
38-
projects: store.projects,
39-
project: store.projectInfo
37+
const mapStateToProps = (state, ownProps) => ({
38+
projects: state.projects,
39+
project: state.projectInfo
4040
})
4141
export default connect(
4242
mapStateToProps,

src/containers/ProjectsList.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ export class ProjectsList extends Component {
245245
}
246246
}
247247

248-
const mapStateToProps = store => ({ projects: store.projects, error: store.error })
248+
const mapStateToProps = state => ({ projects: state.projects, error: state.error })
249249
export default connect(
250250
mapStateToProps,
251251
{ fetchProjects, setLastLocation }

src/containers/SignUp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export class SignUp extends Component {
102102
}
103103
}
104104

105-
const mapStateToProps = store => ({ signedUpUser: store.signedUpUser })
105+
const mapStateToProps = state => ({ signedUpUser: state.signedUpUser })
106106
export default connect(
107107
mapStateToProps,
108108
{ postSignUpInfo }

src/containers/Subscriptions.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ export const Subscriptions = props => {
9494
</Fragment>
9595
)
9696
}
97-
const mapStateToProps = (store, ownProps) => ({
98-
loggedInUser: store.loggedInUser,
97+
const mapStateToProps = (state, ownProps) => ({
98+
loggedInUser: state.loggedInUser,
9999
cookies: ownProps.cookies,
100-
error: store.error
100+
error: state.error
101101
})
102102
const mapDispatchToProps = dispatch => {
103103
return {

src/containers/UserProfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export class UserProfile extends Component {
3535
}
3636
}
3737

38-
const mapStateToProps = store => ({ users: store.users, user: store.userInfo })
38+
const mapStateToProps = state => ({ users: state.users, user: state.userInfo })
3939
export default connect(
4040
mapStateToProps,
4141
{ fetchUserInfo, setLastLocation }

src/containers/UsersList.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export class UsersList extends Component {
106106
}
107107
}
108108

109-
const mapStateToProps = store => ({ users: store.users })
109+
const mapStateToProps = state => ({ users: state.users })
110110
export default connect(
111111
mapStateToProps,
112112
{ fetchUsers, setLastLocation }

0 commit comments

Comments
 (0)