|
@@ -47,6 +47,7 @@ type SubscriptionDashboardContextValue = {
|
|
|
updateManagedInstitution: (institution: ManagedInstitution) => void
|
|
updateManagedInstitution: (institution: ManagedInstitution) => void
|
|
|
modalIdShown?: SubscriptionDashModalIds
|
|
modalIdShown?: SubscriptionDashModalIds
|
|
|
personalSubscription?: Subscription
|
|
personalSubscription?: Subscription
|
|
|
|
|
+ hasSubscription: boolean
|
|
|
plans: Plan[]
|
|
plans: Plan[]
|
|
|
planCodeToChangeTo?: string
|
|
planCodeToChangeTo?: string
|
|
|
queryingGroupPlanToChangeToPrice: boolean
|
|
queryingGroupPlanToChangeToPrice: boolean
|
|
@@ -121,6 +122,7 @@ export function SubscriptionDashboardProvider({
|
|
|
ManagedInstitution[]
|
|
ManagedInstitution[]
|
|
|
>(getMeta('ol-managedInstitutions'))
|
|
>(getMeta('ol-managedInstitutions'))
|
|
|
const managedPublishers = getMeta('ol-managedPublishers')
|
|
const managedPublishers = getMeta('ol-managedPublishers')
|
|
|
|
|
+ const hasSubscription = getMeta('ol-hasSubscription')
|
|
|
const recurlyApiKey = getMeta('ol-recurlyApiKey')
|
|
const recurlyApiKey = getMeta('ol-recurlyApiKey')
|
|
|
|
|
|
|
|
const hasDisplayedSubscription = Boolean(
|
|
const hasDisplayedSubscription = Boolean(
|
|
@@ -247,6 +249,7 @@ export function SubscriptionDashboardProvider({
|
|
|
updateManagedInstitution,
|
|
updateManagedInstitution,
|
|
|
modalIdShown,
|
|
modalIdShown,
|
|
|
personalSubscription,
|
|
personalSubscription,
|
|
|
|
|
+ hasSubscription,
|
|
|
plans,
|
|
plans,
|
|
|
planCodeToChangeTo,
|
|
planCodeToChangeTo,
|
|
|
queryingGroupPlanToChangeToPrice,
|
|
queryingGroupPlanToChangeToPrice,
|
|
@@ -282,6 +285,7 @@ export function SubscriptionDashboardProvider({
|
|
|
updateManagedInstitution,
|
|
updateManagedInstitution,
|
|
|
modalIdShown,
|
|
modalIdShown,
|
|
|
personalSubscription,
|
|
personalSubscription,
|
|
|
|
|
+ hasSubscription,
|
|
|
plans,
|
|
plans,
|
|
|
planCodeToChangeTo,
|
|
planCodeToChangeTo,
|
|
|
queryingGroupPlanToChangeToPrice,
|
|
queryingGroupPlanToChangeToPrice,
|