mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-02 06:11:32 +01:00
Init payments message types
This commit is contained in:
@@ -44,6 +44,7 @@ import { getFakeBadge } from '../../test-both/helpers/getFakeBadge';
|
||||
import { ThemeType } from '../../types/Util';
|
||||
import { UUID } from '../../types/UUID';
|
||||
import { BadgeCategory } from '../../badges/BadgeCategory';
|
||||
import { PaymentEventKind } from '../../types/Payment';
|
||||
|
||||
const i18n = setupI18n('en', enMessages);
|
||||
|
||||
@@ -863,6 +864,7 @@ export const LinkPreviewWithQuote = Template.bind({});
|
||||
LinkPreviewWithQuote.args = {
|
||||
quote: {
|
||||
conversationColor: ConversationColors[2],
|
||||
conversationTitle: getDefaultConversation().title,
|
||||
text: 'The quoted message',
|
||||
isFromMe: false,
|
||||
sentAt: Date.now(),
|
||||
@@ -2069,3 +2071,13 @@ GiftBadgeMissingBadge.args = {
|
||||
GiftBadgeMissingBadge.story = {
|
||||
name: 'Gift Badge: Missing Badge',
|
||||
};
|
||||
|
||||
export const PaymentNotification = Template.bind({});
|
||||
PaymentNotification.args = {
|
||||
canReply: false,
|
||||
canReact: false,
|
||||
payment: {
|
||||
kind: PaymentEventKind.Notification,
|
||||
note: 'Hello there',
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user