diff --git a/services/web/frontend/js/features/project-list/components/current-plan-widget/commons-plan.tsx b/services/web/frontend/js/features/project-list/components/current-plan-widget/commons-plan.tsx index 4ad90151c6..f3597887ef 100644 --- a/services/web/frontend/js/features/project-list/components/current-plan-widget/commons-plan.tsx +++ b/services/web/frontend/js/features/project-list/components/current-plan-widget/commons-plan.tsx @@ -6,24 +6,29 @@ type CommonsPlanProps = Pick function CommonsPlan({ subscription, plan }: CommonsPlanProps) { const { t } = useTranslation() + const currentPlanLabel = ( + }} /> + ) return ( - - + {currentPlanLabel} + - }} />{' '} - - - + + {currentPlanLabel} + + + ) } diff --git a/services/web/frontend/js/features/project-list/components/current-plan-widget/free-plan.tsx b/services/web/frontend/js/features/project-list/components/current-plan-widget/free-plan.tsx index 0f0122ecb2..f13f52c089 100644 --- a/services/web/frontend/js/features/project-list/components/current-plan-widget/free-plan.tsx +++ b/services/web/frontend/js/features/project-list/components/current-plan-widget/free-plan.tsx @@ -5,17 +5,18 @@ import * as eventTracking from '../../../../infrastructure/event-tracking' function FreePlan() { const { t } = useTranslation() + const currentPlanLabel = ( + }} /> + ) - function handleClick() { + const handleClick = () => { eventTracking.send('subscription-funnel', 'dashboard-top', 'upgrade') eventTracking.sendMB('upgrade-button-click', { source: 'dashboard-top' }) } return ( <> - - }} /> - + {currentPlanLabel} - }} />{' '} - + {currentPlanLabel} {' '} {(isDeleteError || isRenameError) && (