Notifications for a few merge-related scenarios
This commit is contained in:
parent
78ce34b9d3
commit
a49a6f2057
40 changed files with 2764 additions and 553 deletions
|
@ -0,0 +1,35 @@
|
|||
// Copyright 2020-2021 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import * as React from 'react';
|
||||
|
||||
import { setupI18n } from '../../util/setupI18n';
|
||||
import enMessages from '../../../_locales/en/messages.json';
|
||||
import type { PropsType } from './ConversationMergeNotification';
|
||||
import { ConversationMergeNotification } from './ConversationMergeNotification';
|
||||
|
||||
const i18n = setupI18n('en', enMessages);
|
||||
|
||||
export default {
|
||||
title: 'Components/Conversation/ConversationMergeNotification',
|
||||
};
|
||||
|
||||
const createProps = (overrideProps: Partial<PropsType> = {}): PropsType => ({
|
||||
i18n,
|
||||
conversationTitle: overrideProps.conversationTitle || 'John Fire',
|
||||
obsoleteConversationTitle:
|
||||
overrideProps.obsoleteConversationTitle || '(555) 333-1111',
|
||||
});
|
||||
|
||||
export function Basic(): JSX.Element {
|
||||
return <ConversationMergeNotification {...createProps()} />;
|
||||
}
|
||||
|
||||
export function WithNoObsoleteTitle(): JSX.Element {
|
||||
return (
|
||||
<ConversationMergeNotification
|
||||
{...createProps()}
|
||||
obsoleteConversationTitle={undefined}
|
||||
/>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue