feat(comments) : add newest and oldest sorting to admin inbox

This commit is contained in:
2026-10-13 00:48:43 +07:00 Unverified
parent d1dff1a763
commit 7933c08068
8 changed files with 98 additions and 7 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ export function AdminCommentRowsSkeleton({ count = 3 }: { count?: number }) {
export function AdminCommentInboxSkeleton() {
return <div className="flex min-w-0 flex-col gap-6">
<div className="flex flex-col gap-2"><Skeleton className="h-9 w-48 max-w-full" /><Skeleton className="h-5 w-72 max-w-full" /></div>
<div className="flex flex-col gap-6 lg:grid lg:grid-cols-[repeat(3,minmax(0,1fr))_auto] lg:items-end">{Array.from({ length: 3 }, (_, index) =>
<div className="flex flex-col gap-6 lg:grid lg:grid-cols-2 xl:grid-cols-[repeat(4,minmax(0,1fr))_auto] lg:items-end">{Array.from({ length: 4 }, (_, index) =>
<div key={index} className="flex min-w-0 flex-col gap-2"><Skeleton className="h-4 w-36 max-w-full" /><Skeleton className="h-11 w-full md:h-8" /></div>)}
<Skeleton className="h-11 w-24 self-end md:h-8" />
</div>