fix: add token link help

This commit is contained in:
Maël Gangloff
2025-02-19 00:54:04 +01:00
parent 34ea4dd37c
commit 27e60e566a
7 changed files with 110 additions and 74 deletions

View File

@@ -1,5 +1,5 @@
import type {FormInstance} from 'antd'
import {Form, Input} from 'antd'
import {Form, Input, Typography} from 'antd'
import React from 'react'
import type {Connector} from '../../api/connectors'
import {ConnectorProvider} from '../../api/connectors'
@@ -27,6 +27,9 @@ export default function NamecheapConnectorForm({form, onCreate}: {
<Form.Item
label={t`Username`}
name={['authData', 'ApiUser']}
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>}
>
<Input autoComplete='off'/>
</Form.Item>