Skip to content

Commit 888227c

Browse files
committed
style(CounterButton) cleaned up decorator code
1 parent 57e4a38 commit 888227c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/components/CounterButton/CounterButton.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ import {connectMultireducer} from 'multireducer';
33
import {increment} from 'redux/modules/counter';
44

55
@connectMultireducer(
6-
(key, state) => {
7-
return ({count: state.multireducer[key].count});
8-
},
6+
(key, state) => ({count: state.multireducer[key].count}),
97
{increment}
108
)
119
export default class CounterButton extends Component {

0 commit comments

Comments
 (0)