Skip to content

Commit 1d90b13

Browse files
committed
fix: component override docs
1 parent 34c5b61 commit 1d90b13

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

package/src/contexts/messageInputContext/MessageInputContext.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,10 @@ export type InputMessageInputContextValue<
414414
*/
415415
compressImageQuality?: number;
416416

417+
/**
418+
* Override the entire content of the CreatePoll component. The component has full access to the
419+
* useCreatePollContext() hook.
420+
* */
417421
CreatePollContent?: React.ComponentType<PollContentProps>;
418422

419423
/**

package/src/contexts/messagesContext/MessagesContext.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,7 @@ export type MessagesContextValue<
357357
handleRetry?: (message: MessageType<StreamChatGenerics>) => Promise<void>;
358358
/** Handler to access when a thread reply action is invoked */
359359
handleThreadReply?: (message: MessageType<StreamChatGenerics>) => Promise<void>;
360+
/** A flag specifying whether the poll creation button is available or not. */
360361
hasCreatePoll?: boolean;
361362
/** Handler to deal with custom memoization logic of Attachment */
362363
isAttachmentEqual?: (
@@ -510,6 +511,10 @@ export type MessagesContextValue<
510511
* ```
511512
*/
512513
onPressMessage?: (payload: MessageTouchableHandlerPayload<StreamChatGenerics>) => void;
514+
/**
515+
* Override the entire content of the Poll component. The component has full access to the
516+
* usePollState() and usePollContext() hooks.
517+
* */
513518
PollContent?: React.ComponentType<PollContentProps>;
514519
/**
515520
* Full override of the reaction function on Message and Message Overlay

0 commit comments

Comments
 (0)