Skip to content

Commit 91ce767

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 19232e1 + d3e6d34 commit 91ce767

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Changelog
22

3+
## 2.3.0
4+
5+
### Fixes
6+
7+
* Fixed issue #52 - Swipe not working on touch devices
8+
* Fixes issue #42 - `title` and `message` accept now custom content (a React node or a functional component)
9+
* Fixed issue #41 - `pauseOnHover` was not taken into consideration when used together with `content`
10+
11+
### Changes
12+
13+
* Changed containers to have fixed width of `325px` instead of `auto` which had different results across different test cases. Mobile containers have not changed, they're full width as before.
14+
315
## 2.2.0
416

517
### Fixes

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
A delightful, easy to use and highly configurable component to help you notify your users out of the box. No messy setup, just beautiful notifications!
55

6+
> :fire: :fire: :fire: Interested in an animation library for React? I just launched `react-tweenful`, check it out here https://github.com/teodosii/react-tweenful
7+
68
## Demo
79

810
https://teodosii.github.io/react-notifications-component/
@@ -310,12 +312,12 @@ store.addNotification({
310312
</tr>
311313
<tr>
312314
<td><code>title</code></td>
313-
<td><code>String</code></td>
315+
<td><code>String</code>, <code>React Node</code> or <code>Functional Component</code></td>
314316
<td>Title of the notification. Option is ignored if <code>content</code> is set, otherwise it is required.</td>
315317
</tr>
316318
<tr>
317319
<td><code>message</code></td>
318-
<td><code>String</code></td>
320+
<td><code>String</code>, <code>React Node</code> or <code>Functional Component</code></td>
319321
<td>Message of the notification. Option is ignored if <code>content</code> is set, otherwise it is required.</td>
320322
</tr>
321323
<tr>

samples/js/helpers/code.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ class App extends React.Component {
1919
container: "top-right",
2020
animationIn: ["animated", "fadeIn"],
2121
animationOut: ["animated", "fadeOut"],
22-
dismiss: { duration: 2000 },
23-
dismissable: { click: true }
22+
dismiss: { duration: 2000 }
2423
});
2524
}
2625

0 commit comments

Comments
 (0)