Skip to content

Commit 495711a

Browse files
committed
modified name of reducer
1 parent 4d3cabf commit 495711a

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import actions from './src/actions';
2-
import reducer from './src/reducer';
2+
import alertReducer from './src/reducer';
33
import constants from './src/constants';
44
import createAlert from '.src/alertContainer';
55

66
export {
77
actions,
8-
reducer,
8+
alertReducer,
99
constants,
1010
createAlert
1111
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "redux-alerts",
2+
"name": "react-redux-alerts",
33
"version": "1.0.0",
44
"description": "A lightweight library for creating keyed alerts in a Redux app",
55
"main": "index.js",

src/alertContainer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default createAlert = config => WrappedComponent => {
1818
if(!this.props.isVisible) return false;
1919
return (
2020
<WrappedComponent />
21-
)
21+
);
2222
}
2323
}
2424

src/reducer.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@ const alertReducer = (state = {}, action = {}) => {
4040
return prev;
4141
}, {});
4242
}
43-
44-
45-
46-
4743
return Object.assign({}, state, {
4844
[alertName]: reducer(state[alertName], action)
4945
});

0 commit comments

Comments
 (0)