Skip to content

Commit

Permalink
chore: ts
Browse files Browse the repository at this point in the history
  • Loading branch information
dougfabris committed Aug 21, 2024
1 parent 2dea90e commit 6cddcaf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type OmnichannelRoomIconProps = {
color?: ComponentProps<typeof Icon>['color'];
status?: UserStatus;
size: ComponentProps<typeof Icon>['size'];
placement: 'sidebar' | 'default';
placement?: 'sidebar' | 'default';
};

export const OmnichannelRoomIcon = ({ source, color, status, size = 'x16', placement = 'default' }: OmnichannelRoomIconProps) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const SourceField = ({ room }: SourceFieldProps) => {
<Label>{t('Channel')}</Label>
<Info>
<Box display='flex' alignItems='center'>
<OmnichannelRoomIcon room={room} size='x24' placement='default' />
<OmnichannelRoomIcon source={room.source} status={room.v.status} size='x24' />
<Label mi={8} mbe='0'>
{defaultTypesLabels[room.source.type] || roomSource}
</Label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type HeaderIconWithRoomProps = {
const HeaderIconWithRoom = ({ room }: HeaderIconWithRoomProps): ReactElement => {
const icon = useRoomIcon(room);
if (isOmnichannelRoom(room)) {
return <OmnichannelRoomIcon room={room} size='x20' placement='default' />;
return <OmnichannelRoomIcon source={room.source} status={room.v?.status} size='x20' />;
}

return <HeaderIcon icon={icon} />;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type HeaderIconWithRoomProps = {
const HeaderIconWithRoom = ({ room }: HeaderIconWithRoomProps): ReactElement => {
const icon = useRoomIcon(room);
if (isOmnichannelRoom(room)) {
return <OmnichannelRoomIcon room={room} size='x20' placement='default' />;
return <OmnichannelRoomIcon source={room.source} status={room.v?.status} size='x20' />;
}

return <HeaderIcon icon={icon} />;
Expand Down

0 comments on commit 6cddcaf

Please sign in to comment.