From 2187f722c2d0d3eb4beef2c2142b2e390ebdf19a Mon Sep 17 00:00:00 2001 From: Joshen Lim Date: Tue, 21 Nov 2023 01:05:09 +0800 Subject: [PATCH] Show email that support will reply to after submitting (#19095) * Show email that support will reply to after submitting * Fix copy --- apps/studio/components/interfaces/Support/Success.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/studio/components/interfaces/Support/Success.tsx b/apps/studio/components/interfaces/Support/Success.tsx index ec23215ffd4..a654305183e 100644 --- a/apps/studio/components/interfaces/Support/Success.tsx +++ b/apps/studio/components/interfaces/Support/Success.tsx @@ -4,12 +4,16 @@ import { Button, IconCheck, IconExternalLink, IconMail, IconSearch, Input } from import Divider from 'components/ui/Divider' import { CATEGORY_OPTIONS } from './Support.constants' +import { useProfile } from 'lib/profile' interface SuccessProps { sentCategory?: string } const Success = ({ sentCategory = '' }: SuccessProps) => { + const { profile } = useProfile() + const respondToEmail = profile?.primary_email ?? 'your email' + const categoriesToShowAdditionalResources = ['Problem', 'Unresponsive', 'Performance'] const selectedCategory = CATEGORY_OPTIONS.find((option) => option.value === sentCategory) @@ -26,7 +30,7 @@ const Success = ({ sentCategory = '' }: SuccessProps) => {

Support request successfully sent!

- We will reach out to you using your account's email address + We will reach out to you at {respondToEmail}

{categoriesToShowAdditionalResources.includes(sentCategory) && (