Skip to content
This repository was archived by the owner on Dec 24, 2019. It is now read-only.

Commit 1542931

Browse files
author
Patrick Burtchaell
authored
Merge pull request #153 from BerkeleyTrue/fix-notification-stack-prop-type
fix(NotificationStack): set action proptype from default proptypes
2 parents 758fb74 + 990f0c6 commit 1542931

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/notificationStack.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import React from 'react';
44
import PropTypes from 'prop-types';
55
import StackedNotification from './stackedNotification';
6+
import defaultPropTypes from './defaultPropTypes';
67

78
function defaultBarStyleFactory(index, style) {
89
return Object.assign(
@@ -78,7 +79,7 @@ NotificationStack.propTypes = {
7879
notifications: PropTypes.array.isRequired,
7980
onDismiss: PropTypes.func.isRequired,
8081
onClick: PropTypes.func,
81-
action: PropTypes.string
82+
action: defaultPropTypes.action
8283
};
8384

8485
NotificationStack.defaultProps = {

0 commit comments

Comments
 (0)