0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

feat(console): add placeholder for connector sender test (#1476)

This commit is contained in:
Xiao Yijun 2022-07-08 16:56:55 +08:00 committed by GitHub
parent 81b63f07bb
commit 8e85a115ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 0 deletions

View file

@ -82,6 +82,11 @@ const SenderTester = ({ connectorId, connectorType, config, className }: Props)
<TextInput
hasError={Boolean(inputError?.message)}
type={isSms ? 'tel' : 'email'}
placeholder={
isSms
? t('connector_details.test_sms_placeholder')
: t('connector_details.test_email_placeholder')
}
{...register('sendTo', {
required: true,
pattern: {

View file

@ -222,6 +222,8 @@ const translation = {
edit_config_label: 'Enter your json here',
test_email_sender: 'Test your email connector',
test_sms_sender: 'Test your SMS connector',
test_email_placeholder: 'Enter a test email address',
test_sms_placeholder: 'Enter a test phone number',
test_message_sent: 'Test message sent!',
test_sender_description: 'You will receive a message if your json is rightly configured',
options_change_email: 'Change email connector',

View file

@ -218,6 +218,8 @@ const translation = {
edit_config_label: '请在此输入你的 JSON 配置',
test_email_sender: '测试你的邮件连接器',
test_sms_sender: '测试你的短信连接器',
test_email_placeholder: '请输入一个用于测试的邮件地址',
test_sms_placeholder: '请输入一个用于测试的手机号码',
test_message_sent: '测试信息已发送!',
test_sender_description: '如果你的 JSON 配置正确,你会收到一条测试消息。',
options_change_email: '更换邮件连接器',