ConversationView: Move setQuotedMessage/scrollToMessage to redux
This commit is contained in:
parent
7c68f9ef1a
commit
07f7fa93d6
18 changed files with 183 additions and 159 deletions
|
@ -43,6 +43,7 @@ const useProps = (overrideProps: Partial<Props> = {}): Props => ({
|
|||
removeAttachment: action('removeAttachment'),
|
||||
theme: React.useContext(StorybookThemeContext),
|
||||
setComposerFocus: action('setComposerFocus'),
|
||||
setQuoteByMessageId: action('setQuoteByMessageId'),
|
||||
|
||||
// AttachmentList
|
||||
draftAttachments: overrideProps.draftAttachments || [],
|
||||
|
@ -63,8 +64,7 @@ const useProps = (overrideProps: Partial<Props> = {}): Props => ({
|
|||
onCloseLinkPreview: action('onCloseLinkPreview'),
|
||||
// Quote
|
||||
quotedMessageProps: overrideProps.quotedMessageProps,
|
||||
onClickQuotedMessage: action('onClickQuotedMessage'),
|
||||
setQuotedMessage: action('setQuotedMessage'),
|
||||
scrollToMessage: action('scrollToMessage'),
|
||||
// MediaEditor
|
||||
imageToBlurHash: async () => 'LDA,FDBnm+I=p{tkIUI;~UkpELV]',
|
||||
// MediaQualitySelector
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue