diff --git a/src/app/(modules)/ticket/[ticketId]/components/TicketClassDetailSkeleton.tsx b/src/app/(modules)/ticket/[ticketId]/components/TicketClassDetailSkeleton.tsx index 4fe6d6c..769023b 100644 --- a/src/app/(modules)/ticket/[ticketId]/components/TicketClassDetailSkeleton.tsx +++ b/src/app/(modules)/ticket/[ticketId]/components/TicketClassDetailSkeleton.tsx @@ -1,85 +1,71 @@ import { Card, CardContent, CardHeader } from '@/components/ui/card'; import { Skeleton } from '@/components/ui/skeleton'; +import { Timeline, TimelineItem } from '@/components/ui/timeline'; + +function TimelineEntrySkeleton({ + index, + isLast, +}: { + index: number; + isLast: boolean; +}) { + return ( + + + + + } + marker={} + > +
+ {index === 0 ? : null} + + {index === 0 ? ( + + ) : ( + <> +
+ +
+ + +
+
+ + + )} +
+
+ ); +} export function TicketClassContentSkeleton() { return ( -
- - - - - - -
- {Array.from({ length: 2 }).map((_, index) => ( -
- - -
- ))} -
-
- -
- - -
-
-
-
+
+
+ + +
- - - - - - - - - - - - - - - -
- {Array.from({ length: 5 }).map((_, index) => ( -
- - -
- ))} -
-
-
- - - -
- - -
-
- - {Array.from({ length: 3 }).map((_, index) => ( -
- {index < 2 ? ( - - ) : null} - -
-
- - -
- - -
-
- ))} -
-
+ + {Array.from({ length: 3 }).map((_, index) => ( + + ))} +
); } diff --git a/src/app/(modules)/ticket/[ticketId]/components/TicketOverviewSkeleton.tsx b/src/app/(modules)/ticket/[ticketId]/components/TicketOverviewSkeleton.tsx index 08c1c4b..997190d 100644 --- a/src/app/(modules)/ticket/[ticketId]/components/TicketOverviewSkeleton.tsx +++ b/src/app/(modules)/ticket/[ticketId]/components/TicketOverviewSkeleton.tsx @@ -1,11 +1,29 @@ -import { Card, CardContent, CardHeader } from '@/components/ui/card'; +import { + Card, + CardAction, + CardContent, + CardHeader, +} from '@/components/ui/card'; import { Skeleton } from '@/components/ui/skeleton'; -function OverviewSkeletonField() { +function OverviewMetaSkeletonField({ className }: { className?: string }) { return ( -
- - +
+ +
+ + +
+
+ ); +} + +function SummarySkeletonCard() { + return ( +
+ + +
); } @@ -27,15 +45,45 @@ export function TicketOverviewHeaderSkeleton() { export function TicketOverviewCardSkeleton() { return ( - - - - - - {Array.from({ length: 4 }).map((_, index) => ( - - ))} - - +
+ + + + + + + + + + +
+ + +
+ + + +
+ +
+ {Array.from({ length: 6 }).map((_, index) => ( + + ))} +
+ +
+ {Array.from({ length: 3 }).map((_, index) => ( +
+ + +
+ ))} +
+
+
+
); }