Skip to content

Commit

Permalink
chore: renamed MacActivityIcon to RoomActivityIcon
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandernsilva committed Sep 19, 2023
1 parent 9388073 commit d9bcf2c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useLayout } from '@rocket.chat/ui-contexts';
import type { AllHTMLAttributes, ComponentType, ReactElement, ReactNode } from 'react';
import React, { memo, useMemo } from 'react';

import { MacActivityIcon } from '../../../ee/client/omnichannel/components/MacActivityIcon/MacActivityIcon';
import { RoomActivityIcon } from '../../../ee/client/omnichannel/components/RoomActivityIcon';
import { useOmnichannelPriorities } from '../../../ee/client/omnichannel/hooks/useOmnichannelPriorities';
import { PriorityIcon } from '../../../ee/client/omnichannel/priorities/PriorityIcon';
import { RoomIcon } from '../../components/RoomIcon';
Expand Down Expand Up @@ -146,7 +146,7 @@ function SideBarItemTemplateWithData({
</Badge>
)}
{isOmnichannelRoom(room) && isPriorityEnabled && <PriorityIcon level={room.priorityWeight} />}
{isOmnichannelRoom(room) && <MacActivityIcon room={room} />}
{isOmnichannelRoom(room) && <RoomActivityIcon room={room} />}
</Margins>
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import moment from 'moment';
import type { ComponentProps, ReactElement } from 'react';
import React, { memo, useCallback, useMemo, useState } from 'react';

import { MacActivityIcon } from '../../../../ee/client/omnichannel/components/MacActivityIcon/MacActivityIcon';
import { RoomActivityIcon } from '../../../../ee/client/omnichannel/components/RoomActivityIcon';
import { useOmnichannelPriorities } from '../../../../ee/client/omnichannel/hooks/useOmnichannelPriorities';
import { PriorityIcon } from '../../../../ee/client/omnichannel/priorities/PriorityIcon';
import GenericNoResults from '../../../components/GenericNoResults';
Expand Down Expand Up @@ -198,7 +198,7 @@ const CurrentChatsRoute = ({ id, onRowClick }: { id?: string; onRowClick: (_id:
{moment(lm).format('L LTS')}
</GenericTableCell>
<GenericTableCell withTruncatedText data-qa='current-chats-cell-status'>
<MacActivityIcon room={room} /> {getStatusText(open, onHold)}
<RoomActivityIcon room={room} /> {getStatusText(open, onHold)}
</GenericTableCell>
{canRemoveClosedChats && !open && <RemoveChatButton _id={_id} />}
</GenericTableRow>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import React from 'react';
import { useIsRoomActive } from '../../../../../client/hooks/omnichannel/useIsRoomActive';
import { useOmnichannel } from '../../../../../client/hooks/omnichannel/useOmnichannel';

type MacActivityIconProps = {
type RoomActivityIconProps = {
room: IOmnichannelRoom;
};

export const MacActivityIcon = ({ room }: MacActivityIconProps): ReactElement | null => {
export const RoomActivityIcon = ({ room }: RoomActivityIconProps): ReactElement | null => {
const t = useTranslation();
const { isEnterprise } = useOmnichannel();
const isRoomActive = useIsRoomActive(room);
Expand Down

0 comments on commit d9bcf2c

Please sign in to comment.