Adjust story replies for direct conversations
This commit is contained in:
parent
fa7b7fcd08
commit
0ca66d6e95
19 changed files with 490 additions and 131 deletions
|
@ -521,3 +521,51 @@ story.add('Custom Color', () => (
|
|||
/>
|
||||
</>
|
||||
));
|
||||
|
||||
story.add('isStoryReply', () => {
|
||||
const props = createProps({
|
||||
text: 'Wow!',
|
||||
});
|
||||
|
||||
return (
|
||||
<Quote
|
||||
{...props}
|
||||
authorTitle="Amanda"
|
||||
isStoryReply
|
||||
moduleClassName="StoryReplyQuote"
|
||||
onClose={undefined}
|
||||
rawAttachment={{
|
||||
contentType: VIDEO_MP4,
|
||||
fileName: 'great-video.mp4',
|
||||
isVoiceMessage: false,
|
||||
}}
|
||||
/>
|
||||
);
|
||||
});
|
||||
|
||||
story.add('isStoryReply emoji', () => {
|
||||
const props = createProps();
|
||||
|
||||
return (
|
||||
<Quote
|
||||
{...props}
|
||||
authorTitle="Charlie"
|
||||
isStoryReply
|
||||
moduleClassName="StoryReplyQuote"
|
||||
onClose={undefined}
|
||||
rawAttachment={{
|
||||
contentType: IMAGE_PNG,
|
||||
fileName: 'sax.png',
|
||||
isVoiceMessage: false,
|
||||
thumbnail: {
|
||||
contentType: IMAGE_PNG,
|
||||
height: 100,
|
||||
width: 100,
|
||||
path: pngUrl,
|
||||
objectUrl: pngUrl,
|
||||
},
|
||||
}}
|
||||
reactionEmoji="🏋️"
|
||||
/>
|
||||
);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue