Skip to content

Commit fdc4c77

Browse files
lint
1 parent 4b23323 commit fdc4c77

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/components/skeleton/index.tsx

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import View from '../view';
88
import {asBaseComponent} from '../../commons/new';
99
import {extractAccessibilityProps} from '../../commons/modifiers';
1010

11-
const LinearGradient = LinearGradientPackage?.default
11+
const LinearGradient = LinearGradientPackage?.default;
1212

1313
const ShimmerPlaceholder = createShimmerPlaceholder(LinearGradient);
1414

@@ -325,19 +325,19 @@ class SkeletonView extends Component<SkeletonProps, SkeletonState> {
325325

326326
if (times) {
327327
return (
328-
_.times(times, index => {
329-
const key = timesKey ? `${timesKey}-${index}` : `${index}`;
330-
return (
331-
<SkeletonView
332-
{...this.props}
333-
key={key}
334-
testID={`${testID}-${index}`}
335-
renderContent={index === 0 ? renderContent : this.renderNothing}
336-
hideSeparator={hideSeparator || (!showLastSeparator && index === times - 1)}
337-
times={undefined}
338-
/>
339-
);
340-
})
328+
_.times(times, index => {
329+
const key = timesKey ? `${timesKey}-${index}` : `${index}`;
330+
return (
331+
<SkeletonView
332+
{...this.props}
333+
key={key}
334+
testID={`${testID}-${index}`}
335+
renderContent={index === 0 ? renderContent : this.renderNothing}
336+
hideSeparator={hideSeparator || (!showLastSeparator && index === times - 1)}
337+
times={undefined}
338+
/>
339+
);
340+
})
341341
);
342342
} else {
343343
return this.renderSkeleton();

0 commit comments

Comments
 (0)