Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 6 additions & 12 deletions frontend/src/components/modals/SendMessageModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {useSendEventMessage} from "../../../mutations/useSendEventMessage.ts";
import {ProductSelector} from "../../common/ProductSelector";
import {useEffect} from "react";
import {useGetAccount} from "../../../queries/useGetAccount.ts";
import { getConfig } from "../../../utilites/config.ts";
import {StripeConnectButton} from "../../common/StripeConnectButton";

interface EventMessageModalProps extends GenericModalProps {
orderId?: IdParam,
Expand Down Expand Up @@ -156,17 +156,11 @@ export const SendMessageModal = (props: EventMessageModalProps) => {
{accountRequiresManualVerification && (
<>
<Alert mt={20} variant={'light'} icon={<IconAlertCircle size="1rem"/>}
title={t`Contact us to enable messaging`}>
{t`Due to the high risk of spam, we require manual verification before you can send messages.
Please contact us to request access.`}
<Button
mt={20}
onClick={() => window.open(`mailto:${getConfig("VITE_PLATFORM_SUPPORT_EMAIL", "support@hi.events")}`)}
variant={'outline'}
fullWidth
>
{t`Contact Support`}
</Button>
title={t`Connect Stripe to enable messaging`}>
{t`Due to the high risk of spam, you must connect a Stripe account before you can send messages to attendees.
This is to ensure that all event organizers are verified and accountable.`}
<br/><br/>
<StripeConnectButton/>
</Alert>

</>
Expand Down