From 9b19a95e638b2a5379560b5ffb27c423ad9a2e4e Mon Sep 17 00:00:00 2001 From: Logan Rosen Date: Thu, 22 Jun 2023 12:40:32 -0400 Subject: Bump @types/react to ^18 and adjust types (#889) --- src/view/com/composer/Composer.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/view/com/composer/Composer.tsx') diff --git a/src/view/com/composer/Composer.tsx b/src/view/com/composer/Composer.tsx index 37569fbec..f88cf4bf0 100644 --- a/src/view/com/composer/Composer.tsx +++ b/src/view/com/composer/Composer.tsx @@ -133,8 +133,8 @@ export const ComposePost = observer(function ComposePost({ ) const onPressPublish = useCallback( - async rt => { - if (isProcessing || rt.graphemeLength_ > MAX_GRAPHEME_LENGTH) { + async (rt: RichText) => { + if (isProcessing || rt.graphemeLength > MAX_GRAPHEME_LENGTH) { return } -- cgit 1.4.1