From f6be11d5301101c0574a75c27c05d555c282b2e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Daubensch=C3=BCtz?= Date: Mon, 10 Aug 2015 14:22:25 +0200 Subject: [PATCH] remove alert mixin --- js/mixins/alert_mixin.js | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 js/mixins/alert_mixin.js diff --git a/js/mixins/alert_mixin.js b/js/mixins/alert_mixin.js deleted file mode 100644 index 2b9b5158..00000000 --- a/js/mixins/alert_mixin.js +++ /dev/null @@ -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 ; - }); - - this.setState({alerts: alerts}); - }, - - clearAlerts(){ - this.setState({alerts: null}); - } - -}; - -export default AlertMixin; \ No newline at end of file