Story settings modal copy and design changes

This commit is contained in:
Jamie Kyle 2022-10-26 16:17:39 -07:00 committed by GitHub
parent 7f0a66847b
commit 5ccfabeb0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 295 additions and 93 deletions

View file

@ -7,7 +7,10 @@ import React from 'react';
import type { PropsType } from './StoriesSettingsModal';
import enMessages from '../../_locales/en/messages.json';
import { StoriesSettingsModal } from './StoriesSettingsModal';
import { getDefaultConversation } from '../test-both/helpers/getDefaultConversation';
import {
getDefaultConversation,
getDefaultGroup,
} from '../test-both/helpers/getDefaultConversation';
import { setupI18n } from '../util/setupI18n';
import {
getMyStories,
@ -23,9 +26,15 @@ export default {
candidateConversations: {
defaultValue: Array.from(Array(100), () => getDefaultConversation()),
},
signalConnections: {
defaultValue: Array.from(Array(42), getDefaultConversation),
},
distributionLists: {
defaultValue: [],
},
groupStories: {
defaultValue: Array.from(Array(2), getDefaultGroup),
},
getPreferredBadge: { action: true },
hideStoriesSettings: { action: true },
i18n: {
@ -43,6 +52,7 @@ export default {
onViewersUpdated: { action: true },
setMyStoriesToAllSignalConnections: { action: true },
toggleSignalConnectionsModal: { action: true },
setStoriesDisabled: { action: true },
},
} as Meta;