aboutsummaryrefslogtreecommitdiffstats
path: root/src/models/News.js
diff options
context:
space:
mode:
authorLibravatar Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com>2021-08-17 05:07:38 +0530
committerLibravatar GitHub <noreply@github.com>2021-08-17 05:07:38 +0530
commit0fbee32c27a6efdfe88534303922d189ddbba817 (patch)
tree2b9dddba64ff1519e293c64b3b42b4d9172ec4d3 /src/models/News.js
parentRevert "chore: update outdated node_modules (#1807)" (diff)
downloadferdium-app-0fbee32c27a6efdfe88534303922d189ddbba817.tar.gz
ferdium-app-0fbee32c27a6efdfe88534303922d189ddbba817.tar.zst
ferdium-app-0fbee32c27a6efdfe88534303922d189ddbba817.zip
Typescript conversion (#1805)
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}