Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
teodosii committed Mar 14, 2020
2 parents 19232e1 + d3e6d34 commit 91ce767
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Changelog

## 2.3.0

### Fixes

* Fixed issue #52 - Swipe not working on touch devices
* Fixes issue #42 - `title` and `message` accept now custom content (a React node or a functional component)
* Fixed issue #41 - `pauseOnHover` was not taken into consideration when used together with `content`

### Changes

* 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.

## 2.2.0

### Fixes
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

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!

> :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
## Demo

https://teodosii.github.io/react-notifications-component/
Expand Down Expand Up @@ -310,12 +312,12 @@ store.addNotification({
</tr>
<tr>
<td><code>title</code></td>
<td><code>String</code></td>
<td><code>String</code>, <code>React Node</code> or <code>Functional Component</code></td>
<td>Title of the notification. Option is ignored if <code>content</code> is set, otherwise it is required.</td>
</tr>
<tr>
<td><code>message</code></td>
<td><code>String</code></td>
<td><code>String</code>, <code>React Node</code> or <code>Functional Component</code></td>
<td>Message of the notification. Option is ignored if <code>content</code> is set, otherwise it is required.</td>
</tr>
<tr>
Expand Down
3 changes: 1 addition & 2 deletions samples/js/helpers/code.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ class App extends React.Component {
container: "top-right",
animationIn: ["animated", "fadeIn"],
animationOut: ["animated", "fadeOut"],
dismiss: { duration: 2000 },
dismissable: { click: true }
dismiss: { duration: 2000 }
});
}
Expand Down

0 comments on commit 91ce767

Please sign in to comment.