mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 02:29:45 +00:00
шиммер для заголовка
This commit is contained in:
1 parent
ab8a55998c
commit
778fd4c8a1
5 files changed
+167
-5
No files matched your search
@@ -1,6 +1,7 @@
|
||||
// shared/lib/withLoading/withLoading.tsx
|
||||
import React from "react";
|
||||
import { SkeletonGrid } from "../SkeletonGrid/SkeletonGrid";
|
||||
import styles from "../Skeleton/SkeletonCard.module.scss";
|
||||
|
||||
interface WithLoadingProps {
|
||||
isLoading: boolean;
|
||||
@@ -21,11 +22,14 @@ export const WithLoading = ({
|
||||
}: WithLoadingProps) => {
|
||||
if (isLoading) {
|
||||
return (
|
||||
<SkeletonGrid
|
||||
count={count}
|
||||
gridConfig={gridConfig}
|
||||
variant={variant}
|
||||
/>
|
||||
<div>
|
||||
<div className={styles.titleSkeleton}></div>
|
||||
<SkeletonGrid
|
||||
count={count}
|
||||
gridConfig={gridConfig}
|
||||
variant={variant}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user