Fixed all connections count and renamed MY_STORIES_ID and EditMyStoriesPrivacyModal
This commit is contained in:
parent
be6e988a95
commit
45069673ce
16 changed files with 86 additions and 82 deletions
|
@ -5,7 +5,7 @@ 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 { MY_STORY_ID } from '../../types/Stories';
|
||||
import { UUID } from '../../types/UUID';
|
||||
import { getDefaultConversation } from './getDefaultConversation';
|
||||
|
||||
|
@ -46,9 +46,9 @@ export function getFakeDistributionList(): StoryDistributionListDataType {
|
|||
export function getMyStories(): StoryDistributionListDataType {
|
||||
return {
|
||||
allowsReplies: true,
|
||||
id: MY_STORIES_ID,
|
||||
id: MY_STORY_ID,
|
||||
isBlockList: true,
|
||||
memberUuids: [],
|
||||
name: MY_STORIES_ID,
|
||||
name: MY_STORY_ID,
|
||||
};
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@ import * as durations from '../../util/durations';
|
|||
import { UUID } from '../../types/UUID';
|
||||
import { getDefaultConversation } from './getDefaultConversation';
|
||||
import { fakeAttachment, fakeThumbnail } from './fakeAttachment';
|
||||
import { MY_STORIES_ID } from '../../types/Stories';
|
||||
import { MY_STORY_ID } from '../../types/Stories';
|
||||
|
||||
function getAttachmentWithThumbnail(url: string): AttachmentType {
|
||||
return fakeAttachment({
|
||||
|
@ -28,7 +28,7 @@ export function getFakeMyStory(id?: string, name?: string): MyStoryType {
|
|||
|
||||
return {
|
||||
id: id || UUID.generate().toString(),
|
||||
name: name || id === MY_STORIES_ID ? 'My Stories' : casual.catch_phrase,
|
||||
name: name || id === MY_STORY_ID ? 'My Stories' : casual.catch_phrase,
|
||||
stories: Array.from(Array(storyCount), () => ({
|
||||
...getFakeStoryView(),
|
||||
sendState: [],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue