From 9520c8ee9e604bb4b503e6fa72550e8c6c945bc3 Mon Sep 17 00:00:00 2001 From: Frederik Bolding Date: Wed, 12 Jun 2024 11:53:24 +0200 Subject: [PATCH] chore: Correct docs for Input and Dropdown (#2479) Removes a line in the documentation about `Dropdown` and `Input` only being children of `Field`. This is not accurate as they can also be used outside of forms. --- packages/snaps-sdk/src/jsx/components/form/Dropdown.ts | 3 +-- packages/snaps-sdk/src/jsx/components/form/Input.ts | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/snaps-sdk/src/jsx/components/form/Dropdown.ts b/packages/snaps-sdk/src/jsx/components/form/Dropdown.ts index fa133c526e..89a5851aef 100644 --- a/packages/snaps-sdk/src/jsx/components/form/Dropdown.ts +++ b/packages/snaps-sdk/src/jsx/components/form/Dropdown.ts @@ -19,8 +19,7 @@ type DropdownProps = { const TYPE = 'Dropdown'; /** - * A dropdown component, which is used to create a dropdown. This component - * can only be used as a child of the {@link Field} component. + * A dropdown component, which is used to create a dropdown. * * @param props - The props of the component. * @param props.name - The name of the dropdown field. This is used to identify the diff --git a/packages/snaps-sdk/src/jsx/components/form/Input.ts b/packages/snaps-sdk/src/jsx/components/form/Input.ts index 6f88405132..7d69f39db0 100644 --- a/packages/snaps-sdk/src/jsx/components/form/Input.ts +++ b/packages/snaps-sdk/src/jsx/components/form/Input.ts @@ -21,8 +21,7 @@ type InputProps = { const TYPE = 'Input'; /** - * An input component, which is used to create an input field. This component - * can only be used as a child of the {@link Field} component. + * An input component, which is used to create an input field. * * @param props - The props of the component. * @param props.name - The name of the input field. This is used to identify the