Show badges on message avatars where applicable
This commit is contained in:
parent
fbd7292663
commit
7d17158add
13 changed files with 90 additions and 9 deletions
|
@ -15,6 +15,8 @@ import { ReadStatus } from '../../messages/MessageReadStatus';
|
|||
import { getDefaultConversation } from '../../test-both/helpers/getDefaultConversation';
|
||||
import { setupI18n } from '../../util/setupI18n';
|
||||
import enMessages from '../../../_locales/en/messages.json';
|
||||
import { getFakeBadge } from '../../test-both/helpers/getFakeBadge';
|
||||
import { ThemeType } from '../../types/Util';
|
||||
|
||||
const i18n = setupI18n('en', enMessages);
|
||||
|
||||
|
@ -25,6 +27,7 @@ const defaultMessage: MessageDataPropsType = {
|
|||
id: 'some-id',
|
||||
title: 'Max',
|
||||
}),
|
||||
authorBadge: getFakeBadge(),
|
||||
canReply: true,
|
||||
canDeleteForEveryone: true,
|
||||
canDownload: true,
|
||||
|
@ -61,6 +64,7 @@ const createProps = (overrideProps: Partial<Props> = {}): Props => ({
|
|||
|
||||
i18n,
|
||||
interactionMode: 'keyboard',
|
||||
theme: ThemeType.light,
|
||||
|
||||
showSafetyNumber: action('showSafetyNumber'),
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue