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:
parent
81b63f07bb
commit
8e85a115ec
3 changed files with 9 additions and 0 deletions
|
@ -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: {
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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: '更换邮件连接器',
|
||||
|
|
Loading…
Reference in a new issue