fix: refactor connector form

This commit is contained in:
Maël Gangloff
2025-02-18 17:32:34 +01:00
parent ac5b9d5d4c
commit 3cca7c8213
7 changed files with 66 additions and 69 deletions

View File

@@ -19,6 +19,8 @@ export default function NamecomConnectorForm({form, onCreate}: {
onCreate: (values: Connector) => void
}) {
form.setFieldValue('provider', ConnectorProvider["Name.com"])
return (
<Form
{...formItemLayoutWithOutLabel}
@@ -28,9 +30,6 @@ export default function NamecomConnectorForm({form, onCreate}: {
wrapperCol={{span: 14}}
onFinish={onCreate}
>
<Form.Item name='provider' hidden>
<Input value={ConnectorProvider["Name.com"]}/>
</Form.Item>
<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'