aboutsummaryrefslogtreecommitdiffstats
path: root/src/models/News.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/models/News.js')
-rw-r--r--src/models/News.js22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/models/News.js b/src/models/News.js
deleted file mode 100644
index acacb97dd..000000000
--- a/src/models/News.js
+++ /dev/null
@@ -1,22 +0,0 @@
1// @flow
2
3export default class News {
4 id = '';
5
6 message = '';
7
8 type = 'primary';
9
10 sticky = false;
11
12 constructor(data) {
13 if (!data.id) {
14 throw Error('News requires Id');
15 }
16
17 this.id = data.id;
18 this.message = data.message || this.message;
19 this.type = data.type || this.type;
20 this.sticky = data.sticky !== undefined ? data.sticky : this.sticky;
21 }
22}