Introduce Service Id Types
Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
parent
414c0a58d3
commit
366b875fd2
269 changed files with 5832 additions and 5550 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
import type { Meta, Story } from '@storybook/react';
|
||||
import React from 'react';
|
||||
import { v4 as generateUuid } from 'uuid';
|
||||
|
||||
import { useArgs } from '@storybook/addons';
|
||||
import type { PropsType } from './StoryViewsNRepliesModal';
|
||||
|
@ -10,7 +11,6 @@ import * as durations from '../util/durations';
|
|||
import enMessages from '../../_locales/en/messages.json';
|
||||
import { SendStatus } from '../messages/MessageSendState';
|
||||
import { StoryViewsNRepliesModal } from './StoryViewsNRepliesModal';
|
||||
import { UUID } from '../types/UUID';
|
||||
import { getDefaultConversation } from '../test-both/helpers/getDefaultConversation';
|
||||
import { setupI18n } from '../util/setupI18n';
|
||||
import { StoryViewTargetType } from '../types/Stories';
|
||||
|
@ -110,34 +110,34 @@ function getViewsAndReplies() {
|
|||
author: p2,
|
||||
body: 'So cute ❤️',
|
||||
conversationId: p2.id,
|
||||
id: UUID.generate().toString(),
|
||||
id: generateUuid(),
|
||||
timestamp: Date.now() - 24 * durations.MINUTE,
|
||||
},
|
||||
{
|
||||
author: p3,
|
||||
body: "That's awesome",
|
||||
conversationId: p3.id,
|
||||
id: UUID.generate().toString(),
|
||||
id: generateUuid(),
|
||||
timestamp: Date.now() - 13 * durations.MINUTE,
|
||||
},
|
||||
{
|
||||
author: p3,
|
||||
body: 'Very awesome',
|
||||
conversationId: p3.id,
|
||||
id: UUID.generate().toString(),
|
||||
id: generateUuid(),
|
||||
timestamp: Date.now() - 13 * durations.MINUTE,
|
||||
},
|
||||
{
|
||||
author: p3,
|
||||
body: 'Did I mention how awesome this is?',
|
||||
conversationId: p3.id,
|
||||
id: UUID.generate().toString(),
|
||||
id: generateUuid(),
|
||||
timestamp: Date.now() - 12 * durations.MINUTE,
|
||||
},
|
||||
{
|
||||
author: p4,
|
||||
conversationId: p4.id,
|
||||
id: UUID.generate().toString(),
|
||||
id: generateUuid(),
|
||||
reactionEmoji: '❤️',
|
||||
timestamp: Date.now() - 5 * durations.MINUTE,
|
||||
},
|
||||
|
@ -145,7 +145,7 @@ function getViewsAndReplies() {
|
|||
author: p6,
|
||||
body: 'Thanks everyone!',
|
||||
conversationId: p6.id,
|
||||
id: UUID.generate().toString(),
|
||||
id: generateUuid(),
|
||||
sendStateByConversationId: {
|
||||
[p1.id]: {
|
||||
status: SendStatus.Pending,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue