Added hint to Reply-To field in newsletter detail modal (#19209)

ref GRO-110
This commit is contained in:
Simon Backx 2023-11-30 17:09:11 +01:00 committed by GitHub
parent 226900f040
commit 2809703c76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,11 +73,17 @@ const ReplyToEmailField: React.FC<{
setSenderReplyTo(rendered);
};
const hint = (
<>
If not set, replies go to the sender email address
</>
);
// Pro users without custom sending domains
return (
<TextField
error={Boolean(errors.sender_reply_to)}
hint={errors.sender_reply_to}
hint={errors.sender_reply_to || hint}
placeholder={''}
title="Reply-to email"
value={senderReplyTo}