Skip to content

Commit

Permalink
lint fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaJ2305 committed Jan 21, 2025
1 parent af6f8b5 commit a556f71
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions src/components/Common/SkeletonLoading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,26 +56,23 @@ export const TableSkeleton = ({ count }: { count: number }) => (
</div>
);

export const NoteSkeleton = ({ count }: { count: number }) =>
export const NoteSkeleton = ({ count }: { count: number }) => (
<div className="space-y-4">
{Array.from({ length: count }, (_, index) => (
<div
key={index}
role="status"
aria-label={`Loading note ${index + 1} of ${count}`}
>
<div className="p-4 rounded-lg bg-gray-100 animate-pulse">
<div className="flex items-start gap-3">
<div className="w-8 h-8 rounded-full bg-gray-200" />
<div className="flex-1 space-y-2">
<Skeleton className="h-4 w-24" />
<Skeleton className="h-4 w-3/4" />
<div key={index}>
<div className="p-4 rounded-lg bg-gray-100 animate-pulse">
<div className="flex items-start gap-3">
<div className="w-8 h-8 rounded-full bg-gray-200" />
<div className="flex-1 space-y-2">
<Skeleton className="h-4 w-24" />
<Skeleton className="h-4 w-3/4" />
</div>
</div>
</div>
</div>
</div>
))}
</div>
);

export const CardGridSkeleton = ({ count }: { count: number }) =>
Array.from({ length: count }, (_, index) => (
Expand Down

0 comments on commit a556f71

Please sign in to comment.