From 49c1423f361f207f5e1d125d010be9cfe58179f6 Mon Sep 17 00:00:00 2001 From: Kirill Klimenko Date: Mon, 18 Mar 2024 21:11:30 +0100 Subject: [PATCH] Add comment describing placement of ModalProvider, better typing for Textarea resize prop --- src/components/ui/forms/InputComponent.tsx | 4 ++-- src/router.tsx | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/ui/forms/InputComponent.tsx b/src/components/ui/forms/InputComponent.tsx index d9b23809d0..a6ba4913b5 100644 --- a/src/components/ui/forms/InputComponent.tsx +++ b/src/components/ui/forms/InputComponent.tsx @@ -44,7 +44,7 @@ interface TextareaProps extends Omit { onChange: React.ChangeEventHandler | undefined; placeholder?: string; rows?: number; - resize?: ResponsiveValue; + resize?: ResponsiveValue<'vertical' | 'horizontal' | 'both' | 'none'>; } interface BigNumberProps extends Omit, @@ -161,7 +161,7 @@ export function TextareaComponent(props: TextareaProps) { >