mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 09:23:13 +01:00
remove alert mixin
This commit is contained in:
parent
ada07e707e
commit
f6be11d530
@ -1,21 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
import React from 'react';
|
||||
import AlertDismissable from '../components/ascribe_forms/alert';
|
||||
|
||||
let AlertMixin = {
|
||||
setAlerts(errors){
|
||||
let alerts = errors.map((error) => {
|
||||
return <AlertDismissable error={error} key={error}/>;
|
||||
});
|
||||
|
||||
this.setState({alerts: alerts});
|
||||
},
|
||||
|
||||
clearAlerts(){
|
||||
this.setState({alerts: null});
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
export default AlertMixin;
|
Loading…
Reference in New Issue
Block a user