mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 01:25:17 +01:00
961b8ee58d
removed retry consign_form
19 lines
496 B
JavaScript
19 lines
496 B
JavaScript
import React from 'react';
|
|
import AlertDismissable from '../components/ascribe_forms/alert';
|
|
|
|
let AlertMixin = {
|
|
setAlerts(errors){
|
|
let alerts = errors.map(
|
|
function(error) {
|
|
return <AlertDismissable error={error} key={error}/>;
|
|
}.bind(this)
|
|
);
|
|
this.setState({alerts: alerts});
|
|
},
|
|
clearAlerts(){
|
|
this.setState({alerts: null});
|
|
}
|
|
|
|
};
|
|
|
|
export default AlertMixin; |