diff options
author | 2019-04-11 16:47:28 +0200 | |
---|---|---|
committer | 2019-04-11 16:47:28 +0200 | |
commit | 2af294e00cd14e7ba26ab36bc1b8fe7680661739 (patch) | |
tree | 949f87a957afeddde42843fb15602b8b520c59f2 /src/features | |
parent | WIP: announcement feature and workspace fixes (diff) | |
download | ferdium-app-2af294e00cd14e7ba26ab36bc1b8fe7680661739.tar.gz ferdium-app-2af294e00cd14e7ba26ab36bc1b8fe7680661739.tar.zst ferdium-app-2af294e00cd14e7ba26ab36bc1b8fe7680661739.zip |
fix lint issues
Diffstat (limited to 'src/features')
-rw-r--r-- | src/features/announcements/components/AnnouncementScreen.js | 2 | ||||
-rw-r--r-- | src/features/announcements/store.js | 16 |
2 files changed, 9 insertions, 9 deletions
diff --git a/src/features/announcements/components/AnnouncementScreen.js b/src/features/announcements/components/AnnouncementScreen.js index 2d5efc396..2682b7890 100644 --- a/src/features/announcements/components/AnnouncementScreen.js +++ b/src/features/announcements/components/AnnouncementScreen.js | |||
@@ -150,7 +150,7 @@ class AnnouncementScreen extends Component { | |||
150 | <div className={classes.mainText}> | 150 | <div className={classes.mainText}> |
151 | <p | 151 | <p |
152 | dangerouslySetInnerHTML={{ | 152 | dangerouslySetInnerHTML={{ |
153 | __html: marked(announcement.main.text,{ sanitize: true }), | 153 | __html: marked(announcement.main.text, { sanitize: true }), |
154 | }} | 154 | }} |
155 | /> | 155 | /> |
156 | <div className={classes.mainCtaButton}> | 156 | <div className={classes.mainCtaButton}> |
diff --git a/src/features/announcements/store.js b/src/features/announcements/store.js index d4fb0a52c..3c46828bb 100644 --- a/src/features/announcements/store.js +++ b/src/features/announcements/store.js | |||
@@ -112,14 +112,14 @@ export class AnnouncementsStore extends FeatureStore { | |||
112 | this._showAnnouncement(); | 112 | this._showAnnouncement(); |
113 | 113 | ||
114 | // Check if the user has already used current version (= has seen the announcement) | 114 | // Check if the user has already used current version (= has seen the announcement) |
115 | // const { currentVersion, lastSeenAnnouncementVersion } = this; | 115 | const { currentVersion, lastSeenAnnouncementVersion } = this; |
116 | // if (semver.gt(currentVersion, lastSeenAnnouncementVersion)) { | 116 | if (semver.gt(currentVersion, lastSeenAnnouncementVersion)) { |
117 | // debug(`${currentVersion} < ${lastSeenAnnouncementVersion}: announcement is shown`); | 117 | debug(`${currentVersion} < ${lastSeenAnnouncementVersion}: announcement is shown`); |
118 | // this._showAnnouncement(); | 118 | this._showAnnouncement(); |
119 | // } else { | 119 | } else { |
120 | // debug(`${currentVersion} >= ${lastSeenAnnouncementVersion}: announcement is hidden`); | 120 | debug(`${currentVersion} >= ${lastSeenAnnouncementVersion}: announcement is hidden`); |
121 | // this._hideAnnouncement(); | 121 | this._hideAnnouncement(); |
122 | // } | 122 | } |
123 | }; | 123 | }; |
124 | 124 | ||
125 | _fetchAnnouncements = () => { | 125 | _fetchAnnouncements = () => { |