Skip to content

Commit aa22074

Browse files
committed
fix: remove unused props from message input
1 parent cf0dbec commit aa22074

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

package/src/components/MessageInput/MessageInput.tsx

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ import {
6464
NativeHandlers,
6565
} from '../../native';
6666
import { AIStates, useAIState } from '../AITypingIndicatorView';
67-
import { AttachmentPickerProps } from '../AttachmentPicker/AttachmentPicker';
6867
import { AutoCompleteInput } from '../AutoCompleteInput/AutoCompleteInput';
6968
import { CreatePoll } from '../Poll/CreatePollContent';
7069

@@ -106,20 +105,10 @@ const styles = StyleSheet.create({
106105
},
107106
});
108107

109-
type MessageInputPropsWithContext = Partial<
110-
Pick<
111-
AttachmentPickerProps,
112-
| 'AttachmentPickerError'
113-
| 'AttachmentPickerErrorImage'
114-
| 'AttachmentPickerIOSSelectMorePhotos'
115-
| 'ImageOverlaySelectedComponent'
116-
| 'attachmentPickerErrorButtonText'
117-
| 'attachmentPickerErrorText'
118-
| 'numberOfAttachmentImagesToLoadPerCall'
119-
| 'numberOfAttachmentPickerImageColumns'
120-
>
108+
type MessageInputPropsWithContext = Pick<
109+
AttachmentPickerContextValue,
110+
'bottomInset' | 'selectedPicker'
121111
> &
122-
Pick<AttachmentPickerContextValue, 'bottomInset' | 'bottomSheetRef' | 'selectedPicker'> &
123112
Pick<ChatContextValue, 'isOnline'> &
124113
Pick<ChannelContextValue, 'channel' | 'members' | 'threadList' | 'watchers'> &
125114
Pick<

0 commit comments

Comments
 (0)