make linter happy
This commit is contained in:
1 file changed
+3
-2
@@ -41,13 +41,14 @@ export function PaginationLoader({
|
||||
if (isEmpty) {
|
||||
const count = isCompact ? 5 : 3;
|
||||
const anchorIndex = direction === 'backward' ? count - 1 : 0;
|
||||
const skeletonKeys = Array.from({ length: count }, (_, idx) => `skeleton-${direction}-${idx}`);
|
||||
|
||||
return (
|
||||
<>
|
||||
{[...Array(count)].map((_, i) => {
|
||||
{skeletonKeys.map((skeletonKey, i) => {
|
||||
const attachRef = i === anchorIndex ? observerRef : undefined;
|
||||
return (
|
||||
<MessageBase key={i} ref={attachRef}>
|
||||
<MessageBase key={skeletonKey} ref={attachRef}>
|
||||
{isCompact ? <CompactPlaceholder /> : <DefaultPlaceholder />}
|
||||
</MessageBase>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user