Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

fix: add keys to skeleton

Marc Seitz4fdbe735b7da
diff --git a/components/documents/stats-chart-skeleton.tsx b/components/documents/stats-chart-skeleton.tsx
index 84883c93..f262a1ae 100644
--- a/components/documents/stats-chart-skeleton.tsx
+++ b/components/documents/stats-chart-skeleton.tsx
@@ -3,16 +3,14 @@ import { cn } from "@/lib/utils";
const StatsChartSkeleton = ({ className }: { className?: string }) => {
return (
- <section
- className={cn("px-4 border-l border-b rounded-bl-lg", className)}
- >
+ <section className={cn("px-4 border-l border-b rounded-bl-lg", className)}>
<div className="flex items-center justify-end">
<Skeleton className="h-4 w-28" />
</div>
<div className="flex justify-start items-end space-x-8">
<div className="flex flex-col">
{Array.from({ length: 5 }).map((_, i) => (
- <Skeleton className="w-10 h-4 rounded-sm my-[18px]" />
+ <Skeleton className="w-10 h-4 rounded-sm my-[18px]" key={i} />
))}
</div>
<div className="w-full flex items-end space-x-4 sm:space-x-5 md:space-x-8">
@@ -20,6 +18,7 @@ const StatsChartSkeleton = ({ className }: { className?: string }) => {
<Skeleton
className="w-16 sm:w-20 md:w-28 !rounded-t-lg rounded-b-none"
style={{ height: `${item}px` }}
+ key={i}
/>
))}
</div>
@@ -28,4 +27,4 @@ const StatsChartSkeleton = ({ className }: { className?: string }) => {
);
};
-export default StatsChartSkeleton
\ No newline at end of file
+export default StatsChartSkeleton;