Regression: Omnichannel icons (#4136)

* fix: Omnichannel icons

* update: `RoomItem.storyshot`
This commit is contained in:
Gerzon Z 2022-04-29 13:08:19 -04:00 committed by Diego Mello
parent 6b36adea0e
commit 1f9f14efd4
3 changed files with 3 additions and 31 deletions

View File

@ -3,7 +3,7 @@ import React from 'react';
import RoomTypeIcon from '../RoomTypeIcon';
import { ITypeIconProps } from './interfaces';
const TypeIcon = React.memo(({ type, prid, status, isGroupChat, teamMain, size, style }: ITypeIconProps) => (
const TypeIcon = React.memo(({ type, prid, status, isGroupChat, teamMain, size, style, sourceType }: ITypeIconProps) => (
<RoomTypeIcon
type={prid ? 'discussion' : type}
isGroupChat={isGroupChat}
@ -11,6 +11,7 @@ const TypeIcon = React.memo(({ type, prid, status, isGroupChat, teamMain, size,
teamMain={teamMain}
size={size}
style={style}
sourceType={sourceType}
/>
));

View File

@ -1,29 +0,0 @@
import React from 'react';
import { TUserStatus, IOmnichannelSource } from '../../definitions';
import RoomTypeIcon from '../../containers/RoomTypeIcon';
interface ITypeIcon {
type: string;
status: TUserStatus;
prid: string;
isGroupChat: boolean;
teamMain: boolean;
size?: number;
style?: object;
sourceType?: IOmnichannelSource;
}
const TypeIcon = React.memo(({ type, prid, status, isGroupChat, teamMain, size, style, sourceType }: ITypeIcon) => (
<RoomTypeIcon
type={prid ? 'discussion' : type}
isGroupChat={isGroupChat}
status={status}
teamMain={teamMain}
size={size}
style={style}
sourceType={sourceType}
/>
));
export default TypeIcon;

File diff suppressed because one or more lines are too long