From fd9c66404a40dcfe5dab75f9aa1f5e64d1f131c4 Mon Sep 17 00:00:00 2001 From: Jessica Lawshe Date: Mon, 3 Oct 2022 08:31:55 -0500 Subject: [PATCH] Merge pull request #9809 from overleaf/ii-dashboard-mobile-view-improvements-2 [web] Projects dashboard improvements 2 GitOrigin-RevId: c34e91d55785564638ac1d54412a7e5c350fd410 --- .../current-plan-widget/commons-plan.tsx | 35 ++++++----- .../current-plan-widget/free-plan.tsx | 12 ++-- .../current-plan-widget/group-plan.tsx | 62 ++++++++++--------- .../current-plan-widget/individual-plan.tsx | 52 +++++++++------- .../components/modals/edit-tag-modal.tsx | 16 +++-- 5 files changed, 99 insertions(+), 78 deletions(-) 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) && (