From c74c43d8d803e7606c42b32c306e5051b1afc775 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Bruus=20Zeppelin?= Date: Tue, 22 Oct 2024 09:38:27 +0200 Subject: [PATCH] Change receiver input to textarea --- .../shared/Form/TokenAmount/TokenAmount.scss | 4 +++ .../popupX/shared/Form/TokenAmount/View.tsx | 33 +++++++++++++++---- 2 files changed, 31 insertions(+), 6 deletions(-) diff --git a/packages/browser-wallet/src/popup/popupX/shared/Form/TokenAmount/TokenAmount.scss b/packages/browser-wallet/src/popup/popupX/shared/Form/TokenAmount/TokenAmount.scss index 01ecd78ad..1ad87a397 100644 --- a/packages/browser-wallet/src/popup/popupX/shared/Form/TokenAmount/TokenAmount.scss +++ b/packages/browser-wallet/src/popup/popupX/shared/Form/TokenAmount/TokenAmount.scss @@ -132,5 +132,9 @@ justify-content: space-between; margin-top: rem(12px); } + + textarea { + resize: none; + } } } diff --git a/packages/browser-wallet/src/popup/popupX/shared/Form/TokenAmount/View.tsx b/packages/browser-wallet/src/popup/popupX/shared/Form/TokenAmount/View.tsx index 0034924e9..18e6a6e55 100644 --- a/packages/browser-wallet/src/popup/popupX/shared/Form/TokenAmount/View.tsx +++ b/packages/browser-wallet/src/popup/popupX/shared/Form/TokenAmount/View.tsx @@ -45,6 +45,30 @@ const InputClear = forwardRef( const FormInputClear = makeUncontrolled(InputClear); +type ReceiverInputProps = Pick< + InputHTMLAttributes, + 'className' | 'value' | 'onChange' | 'onBlur' | 'autoFocus' +> & + RequiredUncontrolledFieldProps; + +/** + * @description + * Use as a normal \