diff --git a/packages/responses/src/Domain/Temp/Subscription.ts b/packages/responses/src/Domain/Temp/Subscription.ts index e749413a965..26949937891 100644 --- a/packages/responses/src/Domain/Temp/Subscription.ts +++ b/packages/responses/src/Domain/Temp/Subscription.ts @@ -4,4 +4,5 @@ export type Subscription = { createdAt: number updatedAt: number cancelled: boolean + subscriptionType?: 'regular' | 'shared' } diff --git a/packages/web/src/javascripts/Components/Preferences/Panes/Account/AccountPreferences.tsx b/packages/web/src/javascripts/Components/Preferences/Panes/Account/AccountPreferences.tsx index 7fe9aa7daf5..2e1dec48264 100644 --- a/packages/web/src/javascripts/Components/Preferences/Panes/Account/AccountPreferences.tsx +++ b/packages/web/src/javascripts/Components/Preferences/Panes/Account/AccountPreferences.tsx @@ -18,6 +18,7 @@ type Props = { const AccountPreferences = ({ application }: Props) => { const isUsingThirdPartyServer = !application.sessions.isSignedIntoFirstPartyServer() + const isSharedSubscription = application.subscriptionController.isSharedSubscription return ( @@ -30,7 +31,7 @@ const AccountPreferences = ({ application }: Props) => { )} - + {!isSharedSubscription && } {application.hasAccount() && application.featuresController.entitledToFiles && ( )} diff --git a/packages/web/src/javascripts/Components/Preferences/Panes/Account/Subscription/SubscriptionInformation.tsx b/packages/web/src/javascripts/Components/Preferences/Panes/Account/Subscription/SubscriptionInformation.tsx index 5e02fc7d703..f945da5716e 100644 --- a/packages/web/src/javascripts/Components/Preferences/Panes/Account/Subscription/SubscriptionInformation.tsx +++ b/packages/web/src/javascripts/Components/Preferences/Panes/Account/Subscription/SubscriptionInformation.tsx @@ -5,6 +5,7 @@ import { useApplication } from '@/Components/ApplicationProvider' const SubscriptionInformation = () => { const application = useApplication() + const isSharedSubscription = application.subscriptionController.isSharedSubscription const manageSubscription = async () => { void application.openSubscriptionDashboard.execute() @@ -13,7 +14,9 @@ const SubscriptionInformation = () => { return ( <> -