diff --git a/apps/customer-service/src/components/infos/activity-panel.tsx b/apps/customer-service/src/components/infos/activity.tsx
similarity index 86%
rename from apps/customer-service/src/components/infos/activity-panel.tsx
rename to apps/customer-service/src/components/infos/activity.tsx
index 63386bd4d..bbf86b708 100644
--- a/apps/customer-service/src/components/infos/activity-panel.tsx
+++ b/apps/customer-service/src/components/infos/activity.tsx
@@ -13,39 +13,7 @@ import { RelativeTime } from '~/components/ui/relative-time';
import { api } from '~/utils/api';
import { cn } from '~/utils/utils';
-const activity = [
- {
- id: 1,
- type: 'created',
- author: { name: 'Leslie Alexander' },
- createdAt: '2023-01-23T10:32',
- },
- {
- id: 2,
- type: 'assigned',
- author: { name: 'Tom Cook' },
- createdAt: '2023-01-23T11:03',
- },
- {
- id: 3,
- type: 'commented',
- author: {
- name: 'Sophie Radcliff',
- avatarUrl:
- 'https://images.unsplash.com/photo-1550525811-e5869dd03032?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80',
- },
- comment: 'Called client, they are not happy with the product.',
- createdAt: '2023-01-23T15:56',
- },
- {
- id: 5,
- type: 'resolved',
- author: { name: 'Tom Cook' },
- createdAt: '2023-01-24T09:20',
- },
-];
-
-export const ActivityPanel: FC<{
+export const Activity: FC<{
ticketId: number;
}> = ({ ticketId }) => {
const { data: ticketActivitiesData } = api.ticketActivity.byTicketId.useQuery(
@@ -53,13 +21,16 @@ export const ActivityPanel: FC<{
ticketId,
}
);
+
return (
{ticketActivitiesData?.map((ticketActivity, ticketActivityIdx) => (
-
@@ -170,4 +141,4 @@ export const ActivityPanel: FC<{
);
};
-ActivityPanel.displayName = 'ActivityPanel';
+Activity.displayName = 'ActivityPanel';
diff --git a/apps/customer-service/src/components/infos/info-panel.tsx b/apps/customer-service/src/components/infos/info-panel.tsx
index b6a4346f1..200753428 100644
--- a/apps/customer-service/src/components/infos/info-panel.tsx
+++ b/apps/customer-service/src/components/infos/info-panel.tsx
@@ -3,10 +3,10 @@
import { FC } from 'react';
import { FormattedMessage } from 'react-intl';
-import { ActivityPanel } from '~/components/infos/activity-panel';
-import { InfoSummary } from '~/components/infos/info-summary';
-import { LinkedTicketsPanel } from '~/components/infos/linked-tickets-panel';
-import { UserInfoPanel } from '~/components/infos/user-info-panel';
+import { Activity } from '~/components/infos/activity';
+import { LinkedTickets } from '~/components/infos/linked-tickets';
+import { TicketInfo } from '~/components/infos/ticket-info';
+import { UserInfo } from '~/components/infos/user-info';
import {
Accordion,
AccordionContent,
@@ -28,8 +28,13 @@ export const InfoPanel: FC<{
return (