@@ -10,6 +10,7 @@ import {
10
10
Subscription ,
11
11
UserPaidSubscription ,
12
12
AssignedTeamSubscription ,
13
+ AssignedTeamSubscription2 ,
13
14
CreditDescription ,
14
15
} from "@gitpod/gitpod-protocol/lib/accounting-protocol" ;
15
16
import { PlanCoupon , GithubUpgradeURL } from "@gitpod/gitpod-protocol/lib/payment-protocol" ;
@@ -80,16 +81,18 @@ export default function () {
80
81
const paidSubscription = activeSubscriptions . find ( ( s ) => UserPaidSubscription . is ( s ) ) ;
81
82
const paidPlan = paidSubscription && Plans . getById ( paidSubscription . planId ) ;
82
83
83
- const assignedTeamSubscriptions = activeSubscriptions . filter ( ( s ) => AssignedTeamSubscription . is ( s ) ) ;
84
+ const assignedTeamSubscriptions = activeSubscriptions . filter (
85
+ ( s ) => AssignedTeamSubscription . is ( s ) || AssignedTeamSubscription2 . is ( s ) ,
86
+ ) ;
84
87
const getAssignedTs = ( type : PlanType ) =>
85
88
assignedTeamSubscriptions . find ( ( s ) => {
86
89
const p = Plans . getById ( s . planId ) ;
87
90
return ! ! p && p . type === type ;
88
91
} ) ;
89
- const assignedProfessionalTs = getAssignedTs ( "professional-new" ) ;
90
92
const assignedUnleashedTs = getAssignedTs ( "professional" ) ;
91
93
const assignedStudentUnleashedTs = getAssignedTs ( "student" ) ;
92
- const assignedTs = assignedProfessionalTs || assignedUnleashedTs || assignedStudentUnleashedTs ;
94
+ const assignedProfessionalTs = getAssignedTs ( "professional-new" ) ;
95
+ const assignedTs = assignedUnleashedTs || assignedStudentUnleashedTs || assignedProfessionalTs ;
93
96
94
97
const claimedTeamSubscriptionId = new URL ( window . location . href ) . searchParams . get ( "teamid" ) ;
95
98
if (
@@ -674,7 +677,7 @@ export default function () {
674
677
) }
675
678
< p className = "text-sm" >
676
679
< a
677
- className = { `text-blue-light hover:underline" ${ isChargebeeCustomer ? "" : "invisible" } ` }
680
+ className = { `gp-link ${ isChargebeeCustomer ? "" : "invisible" } ` }
678
681
href = "javascript:void(0)"
679
682
onClick = { ( ) => {
680
683
ChargebeeClient . getOrCreate ( ) . then ( ( chargebeeClient ) =>
0 commit comments