domain-watchdog/assets/utils/providers/forms/NamecomConnectorForm.tsx

33 lines
1.2 KiB
TypeScript
Raw Permalink Normal View History

2025-02-19 00:54:04 +01:00
import {Alert, Form, Input, Typography} from 'antd'
2025-02-18 15:41:59 +01:00
import React from 'react'
import {t} from 'ttag'
2025-03-04 19:11:24 +01:00
import {LockOutlined, UserOutlined} from "@ant-design/icons"
2025-02-18 15:41:59 +01:00
2025-02-20 16:32:25 +01:00
export default function NamecomConnectorForm() {
2025-02-18 17:32:34 +01:00
2025-02-18 15:41:59 +01:00
return (
2025-02-19 22:21:20 +01:00
<>
2025-02-18 15:41:59 +01:00
<Alert
message={t`This provider does not provide a list of supported TLD. Please double check if the domain you want to register is supported.`}
type='warning'
style={{marginBottom: '2em'}}
/>
<Form.Item
label={t`Username`}
name={['authData', 'username']}
2025-02-19 00:54:04 +01:00
help={<Typography.Link target='_blank' href='https://www.name.com/account/settings/api'>
{t`Retrieve a set of tokens from your customer account on the Provider's website`}
</Typography.Link>}
2025-02-18 15:41:59 +01:00
>
2025-03-04 19:11:24 +01:00
<Input prefix={<UserOutlined/>} autoComplete='off'/>
2025-02-18 15:41:59 +01:00
</Form.Item>
<Form.Item
label={t`API key`}
name={['authData', 'token']}
>
2025-03-04 19:11:24 +01:00
<Input prefix={<LockOutlined/>} autoComplete='off'/>
2025-02-18 15:41:59 +01:00
</Form.Item>
2025-02-19 22:21:20 +01:00
</>
2025-02-18 15:41:59 +01:00
)
}