Render incoming Reactions

This commit is contained in:
Ken Powers 2020-01-17 17:23:19 -05:00 committed by Scott Nonnenberg
parent b113eb19f0
commit 6cc0f2abce
25 changed files with 1411 additions and 134 deletions

View file

@ -12,7 +12,7 @@ export interface Props {
name?: string;
phoneNumber?: string;
profileName?: string;
size: 28 | 52 | 80;
size: 28 | 32 | 52 | 80;
onClick?: () => unknown;
@ -143,7 +143,7 @@ export class Avatar extends React.Component<Props, State> {
const hasImage = !noteToSelf && avatarPath && !imageBroken;
if (size !== 28 && size !== 52 && size !== 80) {
if (![28, 32, 52, 80].includes(size)) {
throw new Error(`Size ${size} is not supported!`);
}