Do not show headers in LeftPane without multiple Conversation types

This commit is contained in:
Chris Svenningsen 2020-10-13 11:59:30 -07:00 committed by Josh Perez
parent dd57963dab
commit fe7008b6b1
3 changed files with 265 additions and 22 deletions

View file

@ -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,