Skip to content

Commit 0c63a0f

Browse files
committed
rename mapState and mapDispatch
1 parent 0583306 commit 0c63a0f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/views/sis/balances.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ class BalancesView extends React.Component {
150150
}
151151
}
152152

153-
function mapStateToProps(state) {
153+
function mapState(state) {
154154
return {
155155
flex: state.sis.balances.flex,
156156
ole: state.sis.balances.ole,
@@ -163,13 +163,13 @@ function mapStateToProps(state) {
163163
}
164164
}
165165

166-
function mapDispatchToProps(dispatch) {
166+
function mapDispatch(dispatch) {
167167
return {
168168
updateBalances: force => dispatch(updateBalances(force)),
169169
}
170170
}
171171

172-
export default connect(mapStateToProps, mapDispatchToProps)(BalancesView)
172+
export default connect(mapState, mapDispatch)(BalancesView)
173173

174174
let cellMargin = 10
175175
let cellSidePadding = 10

0 commit comments

Comments
 (0)