diff --git a/src/components/MemberSubscriptionManage.tsx b/src/components/MemberSubscriptionManage.tsx index f18ecb28a..d6b62f753 100644 --- a/src/components/MemberSubscriptionManage.tsx +++ b/src/components/MemberSubscriptionManage.tsx @@ -26,7 +26,7 @@ export function MemberSubscriptionManage({ open, userDetails, onClose }) { title: `${constants.LEAVE_FAMILY_PLAN}`, content: constants.LEAVE_FAMILY_CONFIRM, proceed: { - text: constants.LEAVE_FAMILY_PLAN, + text: constants.LEAVE, action: onLeaveFamilyClick, variant: 'danger', }, diff --git a/src/components/Sidebar/ExitSection.tsx b/src/components/Sidebar/ExitSection.tsx index f7d0d5e14..6ecbb72a7 100644 --- a/src/components/Sidebar/ExitSection.tsx +++ b/src/components/Sidebar/ExitSection.tsx @@ -22,11 +22,10 @@ export default function ExitSection() { const showDeleteAccountDirections = () => { setDialogMessage({ - title: `${constants.DELETE_ACCOUNT}`, + title: constants.DELETE_ACCOUNT, content: constants.DELETE_ACCOUNT_MESSAGE(), - proceed: { - text: constants.DELETE_ACCOUNT, + text: constants.DELETE, action: () => { initiateEmail('account-deletion@ente.io'); }, diff --git a/src/utils/strings/englishConstants.tsx b/src/utils/strings/englishConstants.tsx index 0060859d5..a1d80bd6a 100644 --- a/src/utils/strings/englishConstants.tsx +++ b/src/utils/strings/englishConstants.tsx @@ -246,6 +246,7 @@ const englishConstants = { MANAGEMENT_PORTAL: 'Manage payment method', MANAGE_FAMILY_PORTAL: 'Manage family', LEAVE_FAMILY_PLAN: 'Leave family plan', + LEAVE: 'Leave', LEAVE_FAMILY_CONFIRM: 'Are you sure that you want to leave family plan?', CHOOSE_PLAN: 'Choose your subscription plan', MANAGE_PLAN: 'Manage your subscription',