File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import { LATEST_VERSION_BEFORE_SUBSCRIPTION , SUBSCRIPTION_PAST_DUE_MESSAGE } from '@conar/shared/constants'
1+ import { SUBSCRIPTION_PAST_DUE_MESSAGE } from '@conar/shared/constants'
22import { type } from 'arktype'
33import { env } from '~/env'
4- import { stripe } from '~/lib/stripe'
54import { getSubscription , optionalAuthMiddleware , orpc } from '~/orpc'
65
76const bannerType = type ( {
@@ -17,16 +16,6 @@ export const banner = orpc
1716
1817 const items : typeof bannerType . infer = [ ]
1918
20- if ( stripe
21- && context . minorVersion
22- && context . minorVersion < LATEST_VERSION_BEFORE_SUBSCRIPTION
23- ) {
24- items . push ( {
25- text : 'Some features now require a subscription. Please update the app and subscribe to a plan to continue using them.' ,
26- type : 'info' ,
27- } )
28- }
29-
3019 if ( subscription ?. status === 'past_due' ) {
3120 items . push ( {
3221 text : SUBSCRIPTION_PAST_DUE_MESSAGE ,
You can’t perform that action at this time.
0 commit comments