Remove group from story feature
This commit is contained in:
parent
0c13ee896a
commit
9d7eaa003f
10 changed files with 584 additions and 268 deletions
|
@ -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 [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue