From 4358326f5e823dffb9dc41c02c27ce30e31c4b26 Mon Sep 17 00:00:00 2001 From: Aristote Ngoy Date: Mon, 20 Nov 2023 21:00:50 +0200 Subject: [PATCH] Update Input.tsx --- src/components/Input/Input.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/Input/Input.tsx b/src/components/Input/Input.tsx index c23da2e..a659173 100644 --- a/src/components/Input/Input.tsx +++ b/src/components/Input/Input.tsx @@ -29,6 +29,7 @@ export interface InputTopLevelProps { * `TextInput` state. Defaults to `editing`. */ sendButtonVisibilityMode?: 'always' | 'editing' textInputProps?: TextInputProps + rightItems ? : React.ReactNode } export interface InputAdditionalProps { @@ -48,6 +49,7 @@ export const Input = ({ onSendPress, sendButtonVisibilityMode, textInputProps, + rightItems }: InputProps) => { const l10n = React.useContext(L10nContext) const theme = React.useContext(ThemeContext) @@ -79,6 +81,7 @@ export const Input = ({ return ( + {rightItems && rightItems} {user && (isAttachmentUploading ? (