frontend > app

This commit is contained in:
Tom Moor
2017-10-25 22:49:04 -07:00
parent aa34db8318
commit 4863680d86
239 changed files with 11 additions and 11 deletions

18
app/stores/ErrorsStore.js Normal file
View File

@@ -0,0 +1,18 @@
// @flow
import { observable, action } from 'mobx';
class ErrorsStore {
@observable data = observable.array([]);
/* Actions */
@action add = (message: string): void => {
this.data.push(message);
};
@action remove = (index: number): void => {
this.data.splice(index, 1);
};
}
export default ErrorsStore;