about summary refs log tree commit diff
path: root/src/view/com/composer/text-input/TextInput.tsx
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2024-10-08 09:07:40 +0900
committerGitHub <noreply@github.com>2024-10-07 17:07:40 -0700
commite1ca3ae40e8a208ab2ab0b89a96b8e314042c75b (patch)
tree3552743fa299b00b5f13e31721fa219ec50c136e /src/view/com/composer/text-input/TextInput.tsx
parentc06040cc209338fc37980648b31d4d64cc0c5c09 (diff)
downloadvoidsky-e1ca3ae40e8a208ab2ab0b89a96b8e314042c75b.tar.zst
Move remaining composer state into reducer (#5623)
Co-authored-by: Mary <git@mary.my.id>
Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>
Co-authored-by: Hailey <me@haileyok.com>
Diffstat (limited to 'src/view/com/composer/text-input/TextInput.tsx')
-rw-r--r--src/view/com/composer/text-input/TextInput.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/view/com/composer/text-input/TextInput.tsx b/src/view/com/composer/text-input/TextInput.tsx
index 39baa2cb6..43074fa5b 100644
--- a/src/view/com/composer/text-input/TextInput.tsx
+++ b/src/view/com/composer/text-input/TextInput.tsx
@@ -43,7 +43,7 @@ export interface TextInputRef {
 interface TextInputProps extends ComponentProps<typeof RNTextInput> {
   richtext: RichText
   placeholder: string
-  setRichText: (v: RichText | ((v: RichText) => RichText)) => void
+  setRichText: (v: RichText) => void
   onPhotoPasted: (uri: string) => void
   onPressPublish: (richtext: RichText) => Promise<void>
   onNewLink: (uri: string) => void