diff --git a/src/components/Notification/Notification.jsx b/src/components/Notification/Notification.jsx index e775d92..46b29e2 100644 --- a/src/components/Notification/Notification.jsx +++ b/src/components/Notification/Notification.jsx @@ -1,4 +1,5 @@ import '../../styles/components/notification.css' +import PropTypes from 'prop-types' import React from 'react' import { Popup } from 'semantic-ui-react' import NotificationBadge from './NotificationBadge' @@ -71,4 +72,37 @@ Notification.Body = NotificationBody Notification.Footer = NotificationFooter Notification.Empty = NotificationEmpty +Notification.propTypes = { + /** + * Called when a notification message is clicked. Opens + * Detail View and displays notification message. + * @param {Object} notification message + */ + onNotificationClicked: PropTypes.func.isRequired.isRequired, + /** + * Called when a back button is clicked. Returns to + * List View. + */ + onBackClicked: PropTypes.func.isRequired, + /** + * Called when a Clear Notification button is clicked. Clears + * Notication Message from List View and archives it. + * @param {Object} notification message + */ + onClearNotification: PropTypes.func.isRequired, + /** + * Called when a Clear All button is clicked. Clears all + * Notication Message from List View and archives all. + */ + onClearAll: PropTypes.func.isRequired, + /** + * Set selected notification to view. + */ + selectedNotification: PropTypes.string, + /** + * Set notification data. + */ + notifications: PropTypes.object.isRequired +} + export default Notification