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

27 lines
940 B
TypeScript
Raw Normal View History

2025-02-19 00:54:04 +01:00
import {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 NamecheapConnectorForm() {
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
<Form.Item
label={t`Username`}
name={['authData', 'ApiUser']}
2025-02-19 00:54:04 +01:00
help={<Typography.Link target='_blank' href='https://ap.www.namecheap.com/settings/tools/apiaccess/'>
{t`Retreive an API key and whitelist this instance's IP address on Namecheap'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', 'ApiKey']}
>
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
)
}