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 (