Remove group from story feature

This commit is contained in:
Josh Perez 2022-08-30 15:13:32 -04:00 committed by GitHub
parent 0c13ee896a
commit 9d7eaa003f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 584 additions and 268 deletions

View file

@ -4,8 +4,25 @@
import casual from 'casual';
import type { StoryDistributionListDataType } from '../../state/ducks/storyDistributionLists';
import type { StoryDistributionListWithMembersDataType } from '../../types/Stories';
import { MY_STORIES_ID } from '../../types/Stories';
import { UUID } from '../../types/UUID';
import { getDefaultConversation } from './getDefaultConversation';
export function getFakeDistributionListsWithMembers(): Array<StoryDistributionListWithMembersDataType> {
return [
{
...getMyStories(),
members: [],
},
...Array.from(Array(casual.integer(2, 8)), () => ({
...getFakeDistributionList(),
members: Array.from(Array(casual.integer(3, 12)), () =>
getDefaultConversation()
),
})),
];
}
export function getFakeDistributionLists(): Array<StoryDistributionListDataType> {
return [