Skip to content

Commit 811c037

Browse files
author
Manu
committed
- Rename the notify function to notificationAlert
1 parent a4dc443 commit 811c037

4 files changed

Lines changed: 17 additions & 10 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [0.0.3] 2017-11-28
2+
### Bug fixing
3+
- Rename the `notify` function to `notificationAlert`
4+
15
## [0.0.2] 2017-11-26
26
### Bug fixing
37
- Made the icon prop to work properly

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,18 +109,18 @@ export default App;
109109
For this component to work properly you have to have the following libraries installed in your project:
110110

111111
```
112-
`npm install --save reactstrap@next`
113-
`npm install --save [email protected]`
112+
npm install --save reactstrap@next
113+
npm install --save [email protected]
114114
```
115115
Bootstrap will require the following:
116116
```
117-
`npm install --save jquery`
118-
`npm install --save popper.js`
117+
npm install --save jquery
118+
npm install --save popper.js
119119
```
120120

121121

122122
[CHANGELOG]: ./CHANGELOG.md
123123

124124
[LICENSE]: ./LICENSE.md
125-
[version-badge]: https://img.shields.io/badge/version-0.0.2-blue.svg
125+
[version-badge]: https://img.shields.io/badge/version-0.0.3-blue.svg
126126
[license-badge]: https://img.shields.io/badge/license-MIT-blue.svg

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { Alert, Col } from 'reactstrap';
33

4-
class NotificationSystem extends React.Component {
4+
class NotificationAlert extends React.Component {
55
constructor(props) {
66
super(props);
77
this.state = {
@@ -54,7 +54,7 @@ class NotificationSystem extends React.Component {
5454
sNotify["notify" + place.toUpperCase()] = notify;
5555
this.setState(sNotify);
5656
}
57-
notify(options) {
57+
notificationAlert(options) {
5858
var notify = this.state["notify" + options.place.toUpperCase()];
5959
var nNumber = notify.length;
6060
if (notify.length > 0) {
@@ -146,4 +146,4 @@ class NotificationSystem extends React.Component {
146146
}
147147
}
148148

149-
export default NotificationSystem;
149+
export default NotificationAlert;

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-notification-alert",
3-
"version": "0.0.2",
3+
"version": "0.0.3",
44
"description": "React bootstrap 4 notification alert",
55
"main": "index.js",
66
"scripts": {
@@ -26,7 +26,10 @@
2626
"notify",
2727
"react-notification",
2828
"alert",
29-
"react-alert"
29+
"react-alert",
30+
"notification-alert",
31+
"alert-notification",
32+
"react-notification-alert"
3033
],
3134
"author": "Creative Tim",
3235
"license": "MIT",

0 commit comments

Comments
 (0)