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

GitOrigin-RevId: 6e9dec05a7cecb3013b629bc87b066466db9ed02
This commit is contained in:
Jimmy Domagala-Tang
2025-07-10 08:08:37 +00:00
committed by Copybot
parent 698d2aebb1
commit 1083a05d69
3 changed files with 11 additions and 10 deletions
@@ -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>