Avatar defaults and colors

This commit is contained in:
Josh Perez 2021-08-05 20:17:05 -04:00 committed by GitHub
parent a001882d58
commit 12d2b1bf7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
140 changed files with 4212 additions and 1084 deletions

View file

@ -15,6 +15,7 @@ import { PropsType, Timeline } from './Timeline';
import { TimelineItem, TimelineItemType } from './TimelineItem';
import { ConversationHero } from './ConversationHero';
import { getDefaultConversation } from '../../test-both/helpers/getDefaultConversation';
import { getRandomColor } from '../../test-both/helpers/getRandomColor';
import { LastSeenIndicator } from './LastSeenIndicator';
import { TimelineLoadingRow } from './TimelineLoadingRow';
import { TypingBubble } from './TypingBubble';
@ -38,7 +39,6 @@ const items: Record<string, TimelineItemType> = {
data: {
author: getDefaultConversation({
phoneNumber: '(202) 555-2001',
color: 'forest',
}),
canDeleteForEveryone: false,
canDownload: true,
@ -58,7 +58,7 @@ const items: Record<string, TimelineItemType> = {
'id-2': {
type: 'message',
data: {
author: getDefaultConversation({ color: 'forest' }),
author: getDefaultConversation({}),
canDeleteForEveryone: false,
canDownload: true,
canReply: true,
@ -90,7 +90,7 @@ const items: Record<string, TimelineItemType> = {
'id-3': {
type: 'message',
data: {
author: getDefaultConversation({ color: 'crimson' }),
author: getDefaultConversation({}),
canDeleteForEveryone: false,
canDownload: true,
canReply: true,
@ -188,7 +188,7 @@ const items: Record<string, TimelineItemType> = {
'id-10': {
type: 'message',
data: {
author: getDefaultConversation({ color: 'plum' }),
author: getDefaultConversation({}),
canDeleteForEveryone: false,
canDownload: true,
canReply: true,
@ -208,7 +208,7 @@ const items: Record<string, TimelineItemType> = {
'id-11': {
type: 'message',
data: {
author: getDefaultConversation({ color: 'plum' }),
author: getDefaultConversation({}),
canDeleteForEveryone: false,
canDownload: true,
canReply: true,
@ -228,7 +228,7 @@ const items: Record<string, TimelineItemType> = {
'id-12': {
type: 'message',
data: {
author: getDefaultConversation({ color: 'crimson' }),
author: getDefaultConversation({}),
canDeleteForEveryone: false,
canDownload: true,
canReply: true,
@ -248,7 +248,7 @@ const items: Record<string, TimelineItemType> = {
'id-13': {
type: 'message',
data: {
author: getDefaultConversation({ color: 'blue' }),
author: getDefaultConversation({}),
canDeleteForEveryone: false,
canDownload: true,
canReply: true,
@ -269,7 +269,7 @@ const items: Record<string, TimelineItemType> = {
'id-14': {
type: 'message',
data: {
author: getDefaultConversation({ color: 'crimson' }),
author: getDefaultConversation({}),
canDeleteForEveryone: false,
canDownload: true,
canReply: true,
@ -418,7 +418,7 @@ const renderLoadingRow = () => <TimelineLoadingRow state="loading" />;
const renderTypingBubble = () => (
<TypingBubble
acceptedMessageRequest
color="crimson"
color={getRandomColor()}
conversationType="direct"
phoneNumber="+18005552222"
i18n={i18n}