@mentions receive support
This commit is contained in:
parent
c126a71864
commit
9657c38987
18 changed files with 555 additions and 23 deletions
|
@ -106,6 +106,7 @@ const createProps = (overrideProps: Partial<Props> = {}): Props => ({
|
|||
isIncoming: boolean('isIncoming', overrideProps.isIncoming || false),
|
||||
onClick: action('onClick'),
|
||||
onClose: action('onClose'),
|
||||
openConversation: action('openConversation'),
|
||||
referencedMessageNotFound: boolean(
|
||||
'referencedMessageNotFound',
|
||||
overrideProps.referencedMessageNotFound || false
|
||||
|
@ -358,3 +359,41 @@ story.add('Missing Text & Attachment', () => {
|
|||
|
||||
return <Quote {...props} />;
|
||||
});
|
||||
|
||||
story.add('@mention + outgoing + another author', () => {
|
||||
const props = createProps({
|
||||
authorTitle: 'Tony Stark',
|
||||
text: '@Captain America Lunch later?',
|
||||
});
|
||||
|
||||
return <Quote {...props} />;
|
||||
});
|
||||
|
||||
story.add('@mention + outgoing + me', () => {
|
||||
const props = createProps({
|
||||
isFromMe: true,
|
||||
text: '@Captain America Lunch later?',
|
||||
});
|
||||
|
||||
return <Quote {...props} />;
|
||||
});
|
||||
|
||||
story.add('@mention + incoming + another author', () => {
|
||||
const props = createProps({
|
||||
authorTitle: 'Captain America',
|
||||
isIncoming: true,
|
||||
text: '@Tony Stark sure',
|
||||
});
|
||||
|
||||
return <Quote {...props} />;
|
||||
});
|
||||
|
||||
story.add('@mention + incoming + me', () => {
|
||||
const props = createProps({
|
||||
isFromMe: true,
|
||||
isIncoming: true,
|
||||
text: '@Tony Stark sure',
|
||||
});
|
||||
|
||||
return <Quote {...props} />;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue