Added story preview and confirmation dialogs to send story

This commit is contained in:
Alvaro 2022-10-12 10:14:35 -06:00 committed by GitHub
parent e80d9d1f30
commit 820eaa50ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 315 additions and 109 deletions

View file

@ -16,6 +16,7 @@ import {
getMyStories,
getFakeDistributionListsWithMembers,
} from '../test-both/helpers/getFakeDistributionLists';
import { VIDEO_MP4 } from '../types/MIME';
const i18n = setupI18n('en', enMessages);
@ -28,6 +29,13 @@ export default {
title: 'Components/SendStoryModal',
component: SendStoryModal,
argTypes: {
draftAttachment: {
defaultValue: {
contentType: VIDEO_MP4,
fileName: 'pixabay-Soap-Bubble-7141.mp4',
url: '/fixtures/pixabay-Soap-Bubble-7141.mp4',
},
},
candidateConversations: {
defaultValue: Array.from(Array(100), () => getDefaultConversation()),
},