Explorar o código

adding link to delete writefull account on deletion modal (#26974)

GitOrigin-RevId: 6e9dec05a7cecb3013b629bc87b066466db9ed02
Jimmy Domagala-Tang hai 1 ano
pai
achega
1083a05d69

+ 1 - 1
services/web/frontend/extracted-translations.json

@@ -789,6 +789,7 @@
   "id": "",
   "identify_errors_with_your_compile": "",
   "if_you_need_to_customize_your_table_further_you_can": "",
+  "if_you_need_to_delete_your_writefull_account": "",
   "if_you_want_more_than_x_licenses_on_your_plan_we_need_to_add_them_for_you": "",
   "if_you_want_to_reduce_the_number_of_licenses_please_contact_support": "",
   "if_your_occupation_not_listed_type_full_name": "",
@@ -1817,7 +1818,6 @@
   "to_confirm_transfer_enter_email_address": "",
   "to_confirm_unlink_all_users_enter_email": "",
   "to_continue_using_upgrade_or_change_your_browser": "",
-  "to_delete_your_writefull_account": "",
   "to_fix_this_you_can": "",
   "to_fix_this_you_can_ask_the_github_repository_owner": "",
   "to_insert_or_move_a_caption_make_sure_tabular_is_directly_within_table": "",

+ 9 - 8
services/web/frontend/js/features/settings/components/leave/modal-content.tsx

@@ -10,8 +10,6 @@ import {
   OLModalTitle,
 } from '@/features/ui/components/ol/ol-modal'
 
-const WRITEFULL_SUPPORT_EMAIL = 'support@writefull.com'
-
 type LeaveModalContentProps = {
   handleHide: () => void
   inFlight: boolean
@@ -46,13 +44,16 @@ function LeaveModalContentBlock({
       />
       <p>
         <Trans
-          i18nKey="to_delete_your_writefull_account"
-          values={{ email: WRITEFULL_SUPPORT_EMAIL }}
-          shouldUnescape
-          tOptions={{ interpolation: { escapeValue: true } }}
+          i18nKey="if_you_need_to_delete_your_writefull_account"
           components={{
-            // eslint-disable-next-line jsx-a11y/anchor-has-content
-            a: <a href={`mailto:${WRITEFULL_SUPPORT_EMAIL}`} />,
+            a: (
+              // eslint-disable-next-line jsx-a11y/anchor-has-content
+              <a
+                href="https://my.writefull.com/account"
+                target="_blank"
+                rel="noopener noreferrer"
+              />
+            ),
           }}
         />
       </p>

+ 1 - 1
services/web/locales/en.json

@@ -1018,6 +1018,7 @@
   "if_have_existing_can_link": "If you have an existing <b>__appName__</b> account on another email, you can link it to your <b>__institutionName__</b> account by clicking <b>__clickText__</b>.",
   "if_owner_can_link": "If you own the <b>__appName__</b> account with <b>__email__</b>, you will be allowed to link it to your <b>__institutionName__</b> institutional account.",
   "if_you_need_to_customize_your_table_further_you_can": "If you need to customize your table further, you can. Using LaTeX code, you can change anything from table styles and border styles to colors and column widths. <0>Read our guide</0> to using tables in LaTeX to help you get started.",
+  "if_you_need_to_delete_your_writefull_account": "If you need to delete your Writefull account, go to your <a>Writefull account settings.</a>",
   "if_you_want_more_than_x_licenses_on_your_plan_we_need_to_add_them_for_you": "If you want more than __count__ licenses on your plan, we need to add them for you. Just click <0>Send request</0> below and we’ll be happy to help.",
   "if_you_want_to_reduce_the_number_of_licenses_please_contact_support": "If you want to reduce the number of licenses on your plan, please <0>contact customer support</0>.",
   "if_your_occupation_not_listed_type_full_name": "If your __occupation__ isn’t listed, you can type the full name.",
@@ -2346,7 +2347,6 @@
   "to_confirm_transfer_enter_email_address": "To accept the invitation, enter the email address linked to your account.",
   "to_confirm_unlink_all_users_enter_email": "To confirm you want to unlink all users, enter your email address:",
   "to_continue_using_upgrade_or_change_your_browser": "To continue using __appName__ without problems you need to upgrade or change to a <0>supported browser</0>.",
-  "to_delete_your_writefull_account": "To delete your Writefull account, or to check if you have one, please contact <a>__email__</a>.",
   "to_fix_this_you_can": "To fix this, you can:",
   "to_fix_this_you_can_ask_the_github_repository_owner": "To fix this, you can ask the GitHub repository owner (<0>__repoOwnerEmail__</0>) to renew their __appName__ subscription and reconnect the project.",
   "to_insert_or_move_a_caption_make_sure_tabular_is_directly_within_table": "To insert or move a caption, make sure \\begin{tabular} is directly within a table environment",