Regression: Omnichannel icons (#4136)
* fix: Omnichannel icons * update: `RoomItem.storyshot`
This commit is contained in:
parent
6b36adea0e
commit
1f9f14efd4
|
@ -3,7 +3,7 @@ import React from 'react';
|
||||||
import RoomTypeIcon from '../RoomTypeIcon';
|
import RoomTypeIcon from '../RoomTypeIcon';
|
||||||
import { ITypeIconProps } from './interfaces';
|
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
|
<RoomTypeIcon
|
||||||
type={prid ? 'discussion' : type}
|
type={prid ? 'discussion' : type}
|
||||||
isGroupChat={isGroupChat}
|
isGroupChat={isGroupChat}
|
||||||
|
@ -11,6 +11,7 @@ const TypeIcon = React.memo(({ type, prid, status, isGroupChat, teamMain, size,
|
||||||
teamMain={teamMain}
|
teamMain={teamMain}
|
||||||
size={size}
|
size={size}
|
||||||
style={style}
|
style={style}
|
||||||
|
sourceType={sourceType}
|
||||||
/>
|
/>
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|
|
@ -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
Loading…
Reference in New Issue