diff options
author | Markandan R <rmarkandan@yahoo.com> | 2021-06-13 19:57:23 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-13 19:57:23 +0530 |
commit | d7b2ea8ce137afe0540307e59a3f13c658df8a0b (patch) | |
tree | 9980e9de0c0dd9bf97242061fff6f1163ad69dc0 /src/features/announcements | |
parent | Pass --publish never for PR builds (#1521) (diff) | |
download | ferdium-app-d7b2ea8ce137afe0540307e59a3f13c658df8a0b.tar.gz ferdium-app-d7b2ea8ce137afe0540307e59a3f13c658df8a0b.tar.zst ferdium-app-d7b2ea8ce137afe0540307e59a3f13c658df8a0b.zip |
Diffstat (limited to 'src/features/announcements')
-rw-r--r-- | src/features/announcements/constants.js | 5 | ||||
-rw-r--r-- | src/features/announcements/index.js | 3 | ||||
-rw-r--r-- | src/features/announcements/store.js | 2 |
3 files changed, 6 insertions, 4 deletions
diff --git a/src/features/announcements/constants.js b/src/features/announcements/constants.js new file mode 100644 index 000000000..284226fdf --- /dev/null +++ b/src/features/announcements/constants.js | |||
@@ -0,0 +1,5 @@ | |||
1 | export const ANNOUNCEMENTS_ROUTES = { | ||
2 | TARGET: '/announcements/:id', | ||
3 | }; | ||
4 | |||
5 | export const GA_CATEGORY_ANNOUNCEMENTS = 'Announcements'; | ||
diff --git a/src/features/announcements/index.js b/src/features/announcements/index.js index 10f081bb1..369ded1b2 100644 --- a/src/features/announcements/index.js +++ b/src/features/announcements/index.js | |||
@@ -7,9 +7,6 @@ export const GA_CATEGORY_ANNOUNCEMENTS = 'Announcements'; | |||
7 | 7 | ||
8 | export const announcementsStore = new AnnouncementsStore(); | 8 | export const announcementsStore = new AnnouncementsStore(); |
9 | 9 | ||
10 | export const ANNOUNCEMENTS_ROUTES = { | ||
11 | TARGET: '/announcements/:id', | ||
12 | }; | ||
13 | 10 | ||
14 | export default function initAnnouncements(stores, actions) { | 11 | export default function initAnnouncements(stores, actions) { |
15 | const { features } = stores; | 12 | const { features } = stores; |
diff --git a/src/features/announcements/store.js b/src/features/announcements/store.js index 9ec5f67d2..4e465286a 100644 --- a/src/features/announcements/store.js +++ b/src/features/announcements/store.js | |||
@@ -7,7 +7,7 @@ import semver from 'semver'; | |||
7 | import localStorage from 'mobx-localstorage'; | 7 | import localStorage from 'mobx-localstorage'; |
8 | 8 | ||
9 | import { FeatureStore } from '../utils/FeatureStore'; | 9 | import { FeatureStore } from '../utils/FeatureStore'; |
10 | import { ANNOUNCEMENTS_ROUTES } from '.'; | 10 | import { ANNOUNCEMENTS_ROUTES } from './constants'; |
11 | import { getAnnouncementRequest, getChangelogRequest, getCurrentVersionRequest } from './api'; | 11 | import { getAnnouncementRequest, getChangelogRequest, getCurrentVersionRequest } from './api'; |
12 | import { announcementActions } from './actions'; | 12 | import { announcementActions } from './actions'; |
13 | import { createActionBindings } from '../utils/ActionBinding'; | 13 | import { createActionBindings } from '../utils/ActionBinding'; |