(
+
+ ) }
+ renderContent={ ( { onClose } ) => (
+
+ { snoozeOptions.map( ( option, idx ) => (
+
+ ) ) }
+
+ ) }
+ />
+ );
+
+ if ( actions || snooze ) {
+ return (
+
+ { actions }
+ { snooze }
+
+ );
+ }
+ }
+
render() {
const alerts = this.props.alerts || [];
const preloadAlertCount = wcSettings.alertCount && parseInt( wcSettings.alertCount );
@@ -81,22 +161,6 @@ class StoreAlerts extends Component {
'is-alert-update': 'update' === type,
} );
- const actions = alert.actions.map( action => {
- const markStatus = () => {
- this.props.updateNote( alert.id, { status: action.status } );
- };
- return (
-
- );
- } );
-
return (
- { actions && { actions }
}
+ { this.renderActions( alert ) }
);
}