diff --git a/src/features/cards/organisms/skeleton-list.js b/src/features/cards/organisms/skeleton-list.js index 3d1f0ba..66607f7 100644 --- a/src/features/cards/organisms/skeleton-list.js +++ b/src/features/cards/organisms/skeleton-list.js @@ -10,18 +10,16 @@ type Props = { renderEmpty: () => React.Node, } +const DEFAULT_SKELETON_COUNT = 3 + export const SkeletonList = ({ isLoading, ids, - count = 3, + count = DEFAULT_SKELETON_COUNT, renderEmpty, }: Props) => isLoading ? ( - <> - {Array.from({ length: count }, (_, idx) => ( - - ))} - + Array.from<*>({ length: count }, (_, idx) => ) ) : ( )