From 0375762b711199e5433218fb858917146ed0cd98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Svanstr=C3=B6m?= Date: Mon, 29 Jan 2024 23:09:52 +0100 Subject: [PATCH] Normalize billed at text in VPN signup CP-7285 --- .../src/app/single-signup/CycleSelector.tsx | 23 ++++++++++++------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/applications/account/src/app/single-signup/CycleSelector.tsx b/applications/account/src/app/single-signup/CycleSelector.tsx index 43eb0bd8992..3a083ea81c2 100644 --- a/applications/account/src/app/single-signup/CycleSelector.tsx +++ b/applications/account/src/app/single-signup/CycleSelector.tsx @@ -20,6 +20,13 @@ export const getBilledAtText = (price: string): string | null => { return c('Info').t`Billed at ${price}`; }; +export const getBilledAtPerMonthText = (price: string, cycle: CYCLE): string | null => { + if (cycle === CYCLE.MONTHLY) { + return c('Info').t`per month`; + } + return c('Info').t`per month, billed at ${price}`; +}; + export const getBilledText = (cycle: CYCLE): string | null => { switch (cycle) { case CYCLE.MONTHLY: @@ -71,7 +78,10 @@ const CycleItemView = ({ bg?: boolean; }) => { return ( -
+
{/* eslint-disable-next-line jsx-a11y/click-events-have-key-events */}