11/*
2- * DiscoveryContentStore store
2+ * ExploreContentStore store
33 *
44 */
55
@@ -11,7 +11,7 @@ import { markStates, toJS } from '@/utils/mobx'
1111import { Trans } from '@/utils/i18n'
1212import { PagedCommunities , PagedCategories , emptyPagiData } from '@/model'
1313
14- const DiscoveryContentStore = T . model ( 'DiscoveryContentStore ' , {
14+ const ExploreContentStore = T . model ( 'ExploreContentStore ' , {
1515 // current active sidbar menu id
1616 activeCatalogId : T . maybeNull ( T . string ) ,
1717 pagedCommunities : T . optional ( PagedCommunities , emptyPagiData ) ,
@@ -121,11 +121,11 @@ const DiscoveryContentStore = T.model('DiscoveryContentStore', {
121121 } ,
122122 addSubscribedCommunity ( community ) {
123123 self . root . account . addSubscribedCommunity ( community )
124- self . root . discoveryContent . toggleSubscribe ( community )
124+ self . root . exploreContent . toggleSubscribe ( community )
125125 } ,
126126 removeSubscribedCommunity ( community ) {
127127 self . root . account . removeSubscribedCommunity ( community )
128- self . root . discoveryContent . toggleSubscribe ( community )
128+ self . root . exploreContent . toggleSubscribe ( community )
129129 } ,
130130 markRoute ( query ) {
131131 self . root . markRoute ( query )
@@ -135,4 +135,4 @@ const DiscoveryContentStore = T.model('DiscoveryContentStore', {
135135 } ,
136136 } ) )
137137
138- export default DiscoveryContentStore
138+ export default ExploreContentStore
0 commit comments