From 8a0626d290cec0a9798f0a67f610d48dd09fa1de Mon Sep 17 00:00:00 2001 From: Tom Chapman Date: Fri, 19 Jul 2024 14:30:25 -0700 Subject: [PATCH] make support links mailto --- met-web/src/components/common/Modals/types.tsx | 2 +- met-web/src/components/engagement/view/FailurePanel.tsx | 5 ++++- .../engagement/view/widgets/Subscribe/EmailListModal.tsx | 7 ++++++- met-web/src/routes/NotFound.tsx | 5 ++++- 4 files changed, 15 insertions(+), 4 deletions(-) diff --git a/met-web/src/components/common/Modals/types.tsx b/met-web/src/components/common/Modals/types.tsx index fd8bc0eb8..a147b9fff 100644 --- a/met-web/src/components/common/Modals/types.tsx +++ b/met-web/src/components/common/Modals/types.tsx @@ -1,7 +1,7 @@ import { ReactNode } from 'react'; export interface ModalSubtext { - text: string; + text: string | ReactNode; bold?: boolean; } diff --git a/met-web/src/components/engagement/view/FailurePanel.tsx b/met-web/src/components/engagement/view/FailurePanel.tsx index 54e63e525..2797b2da6 100644 --- a/met-web/src/components/engagement/view/FailurePanel.tsx +++ b/met-web/src/components/engagement/view/FailurePanel.tsx @@ -36,7 +36,10 @@ const FailurePanel = ({ email, handleClose, tryAgain, visibility }: FailurePanel Please verify your email and try again. - If this problem persists, contact eao.epicsystem@gov.bc.ca + + If this problem persists, contact{' '} + eao.epicsystem@gov.bc.ca + diff --git a/met-web/src/components/engagement/view/widgets/Subscribe/EmailListModal.tsx b/met-web/src/components/engagement/view/widgets/Subscribe/EmailListModal.tsx index 9ba8d9db4..a8c2f6f8d 100644 --- a/met-web/src/components/engagement/view/widgets/Subscribe/EmailListModal.tsx +++ b/met-web/src/components/engagement/view/widgets/Subscribe/EmailListModal.tsx @@ -86,7 +86,12 @@ const EmailListModal = ({ open, setOpen }: { open: boolean; setOpen: (open: bool text: 'Please verify your email and try again.', }, { - text: 'If this problem persists, contact eao.epicsystem@gov.bc.ca', + text: ( + <> + If this problem persists, contact{' '} + eao.epicsystem@gov.bc.ca + + ), }, ], }, diff --git a/met-web/src/routes/NotFound.tsx b/met-web/src/routes/NotFound.tsx index 1988883d7..e6e17e6bb 100644 --- a/met-web/src/routes/NotFound.tsx +++ b/met-web/src/routes/NotFound.tsx @@ -16,7 +16,10 @@ const SuggestionsList = () => ( Go to our homepage and browse through our past and current engagements
  • Telephone Device for the Deaf (TDD) across B.C.: 711
  • -
  • If you would like to email us, please contact eao.epicsystem@gov.bc.ca.
  • +
  • + If you would like to email us, please contact{' '} + eao.epicsystem@gov.bc.ca. +
  • );