Skip to content

Commit d11033c

Browse files
committed
Merge branch 'master' of github.com:academia-de-codigo/react-semantic-toasts
2 parents 42b1819 + c063e0e commit d11033c

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

lib/semantic-toast-container.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class SemanticToastContainer extends Component {
7373

7474
return toasts.length ? (
7575
<div className={`ui-alerts ${position} ${className}`}>
76-
{this.state.toasts.map(toast => {
76+
{toasts.map(toast => {
7777
const {
7878
id,
7979
type = 'info',

lib/semantic-toast.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ SemanticToast.propTypes = {
5454
};
5555

5656
SemanticToast.defaultProps = {
57-
onClick: undefined,
58-
onDismiss: undefined,
59-
onClose: undefined,
57+
onClick: () => undefined,
58+
onDismiss: () => undefined,
59+
onClose: () => undefined,
6060
icon: undefined,
6161
color: undefined,
6262
list: undefined,

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@
4343
"eslint-plugin-import": "^2.18.2",
4444
"eslint-plugin-jsx-a11y": "^6.2.3",
4545
"eslint-plugin-react": "^7.14.3",
46+
"eslint-config-prettier": "^6.0.0",
47+
"prettier-eslint": "^9.0.0",
4648
"semantic-ui-css": "^2.4.1"
4749
},
4850
"dependencies": {
49-
"eslint-config-prettier": "^6.0.0",
50-
"prettier-eslint": "^9.0.0",
5151
"prop-types": "^15.7.2"
5252
},
5353
"peerDependencies": {
5454
"react": "16.x.x",
55-
"semantic-ui-react": "0.83.x || 0.84.x || 0.85.x || 0.86.x || 0.87.x"
55+
"semantic-ui-react": "0.83.x || 0.84.x || 0.85.x || 0.86.x || 0.87.x || 0.88.x"
5656
}
5757
}

0 commit comments

Comments
 (0)