Do not show headers in LeftPane without multiple Conversation types
This commit is contained in:
parent
dd57963dab
commit
fe7008b6b1
3 changed files with 265 additions and 22 deletions
|
@ -89,7 +89,7 @@ story.add('Conversation States (Active, Selected, Archived)', () => {
|
|||
return <LeftPane {...props} />;
|
||||
});
|
||||
|
||||
story.add('Pinned Conversations', () => {
|
||||
story.add('Pinned and Non-pinned Conversations', () => {
|
||||
const props = createProps({
|
||||
pinnedConversations,
|
||||
});
|
||||
|
@ -97,6 +97,16 @@ story.add('Pinned Conversations', () => {
|
|||
return <LeftPane {...props} />;
|
||||
});
|
||||
|
||||
story.add('Only Pinned Conversations', () => {
|
||||
const props = createProps({
|
||||
archivedConversations: [],
|
||||
conversations: [],
|
||||
pinnedConversations,
|
||||
});
|
||||
|
||||
return <LeftPane {...props} />;
|
||||
});
|
||||
|
||||
story.add('Archived Conversations Shown', () => {
|
||||
const props = createProps({
|
||||
showArchived: true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue