Switched ForwardMessageModal to use ListTile
This commit is contained in:
parent
257f5e1231
commit
d64e0b65c4
25 changed files with 528 additions and 239 deletions
|
@ -4,8 +4,9 @@
|
|||
import casual from 'casual';
|
||||
import { sample } from 'lodash';
|
||||
import type { ConversationType } from '../../state/ducks/conversations';
|
||||
import { UUID } from '../../types/UUID';
|
||||
import type { UUIDStringType } from '../../types/UUID';
|
||||
import { UUID } from '../../types/UUID';
|
||||
import type { GroupListItemConversationType } from '../../components/conversationList/GroupListItem';
|
||||
import { getRandomColor } from './getRandomColor';
|
||||
import { ConversationColors } from '../../types/Colors';
|
||||
import { StorySendMode } from '../../types/Stories';
|
||||
|
@ -46,6 +47,18 @@ export function getDefaultConversation(
|
|||
};
|
||||
}
|
||||
|
||||
export function getDefaultGroupListItem(
|
||||
overrideProps: Partial<GroupListItemConversationType> = {}
|
||||
): GroupListItemConversationType {
|
||||
return {
|
||||
...getDefaultGroup(),
|
||||
disabledReason: undefined,
|
||||
membersCount: 24,
|
||||
memberships: [],
|
||||
...overrideProps,
|
||||
};
|
||||
}
|
||||
|
||||
export function getDefaultGroup(
|
||||
overrideProps: Partial<ConversationType> = {}
|
||||
): ConversationType {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue