File tree Expand file tree Collapse file tree 6 files changed +62
-55
lines changed
Expand file tree Collapse file tree 6 files changed +62
-55
lines changed Original file line number Diff line number Diff line change 1- import { Col , Skeleton } from "antd " ;
1+ import { Grid , Skeleton } from "@mui/material " ;
22import React from "react" ;
33
44const ClaimSkeleton = ( ) => {
5+ const textSkeletons = Array . from ( { length : 5 } ) ;
6+
57 return (
6- < Col
7- sm = { 22 }
8- md = { 14 }
9- lg = { 12 }
8+ < Grid item
9+ sm = { 11 }
10+ md = { 7 }
11+ lg = { 6 }
1012 style = { {
1113 marginBottom : "10px" ,
1214 } }
1315 >
14- < Skeleton
15- active
16- paragraph = { { rows : 5 } }
17- round = { true }
18- style = { {
19- width : "100%" ,
20- } }
21- />
22- < Col
16+ < Skeleton variant = "text" width = "30%" animation = "wave" />
17+ { textSkeletons . map ( ( _ , i ) => (
18+ < Skeleton key = { i } variant = "text" width = "100%" animation = "wave" />
19+ ) ) }
20+ < Skeleton variant = "text" width = "60%" animation = "wave" />
21+
22+ < Grid item
2323 style = { {
2424 display : "flex" ,
25- justifyContent : "flex-end " ,
25+ justifyContent : "space-between " ,
2626 padding : "10px 0" ,
2727 } }
2828 >
29- < Skeleton title = { false } paragraph = { { rows : 1 } } />
30- < Skeleton . Button active />
31- </ Col >
32- </ Col >
29+ < Skeleton variant = "text" width = "50%" animation = "wave" />
30+ < Skeleton variant = "rectangular" width = { 60 } height = { 30 } animation = "wave" />
31+ </ Grid >
32+ </ Grid >
3333 ) ;
3434} ;
3535
Original file line number Diff line number Diff line change 1- import { Skeleton } from "antd " ;
1+ import { Skeleton } from "@mui/material " ;
22import React from "react" ;
33
44const HistorySkeleton = ( ) => {
55 return (
66 < Skeleton
7- style = { { marginTop : 16 } }
8- title = { false }
9- paragraph = { { rows : 1 , width : "100%" } }
10- active
7+ variant = "text"
8+ width = "100%"
9+ animation = "wave"
10+ style = { { marginBottom : 15 } }
1111 />
1212 ) ;
1313} ;
Original file line number Diff line number Diff line change 1- import { Col , Skeleton } from "antd " ;
1+ import { Grid , Skeleton } from "@mui/material " ;
22import React from "react" ;
33
44const KanbanSkeleton = ( ) => {
55 return (
6- < Col style = { { width : "95%" } } >
7- < Skeleton
8- style = { { marginTop : 16 } }
9- paragraph = { { rows : 1 , width : "100%" } }
10- active
11- />
12- < Col
6+ < Grid item style = { { width : "95%" } } >
7+ < Skeleton variant = "text" width = "40%" animation = "wave" />
8+ < Skeleton variant = "text" width = "100%" animation = "wave" />
9+ < Grid item
1310 style = { {
1411 display : "flex" ,
1512 justifyContent : "flex-end" ,
1613 padding : "10px 0" ,
1714 } }
1815 >
19- < Skeleton . Button active style = { { height : 16 , width : 150 } } />
20- </ Col >
21- </ Col >
16+ < Skeleton variant = "text" width = "50%" animation = "wave" />
17+ </ Grid >
18+ </ Grid >
2219 ) ;
2320} ;
2421
Original file line number Diff line number Diff line change 1- import { Skeleton } from "antd " ;
1+ import { Skeleton } from "@mui/material " ;
22import React from "react" ;
33import CardBase from "../CardBase" ;
44
55const ReviewCarouselSkeleton = ( ) => {
6+ const textSkeletons = Array . from ( { length : 5 } ) ;
7+
68 return (
79 < CardBase style = { { width : "fit-content" , minWidth : "100%" } } >
810 < div style = { { flex : 1 , padding : "24px 32px" } } >
9- < Skeleton active paragraph = { { rows : 5 } } round = { true } />
11+ < Skeleton variant = "text" width = "30%" animation = "wave" />
12+ { textSkeletons . map ( ( _ , i ) => (
13+ < Skeleton key = { i } variant = "text" width = "100%" animation = "wave" />
14+ ) ) }
15+ < Skeleton variant = "text" width = "60%" animation = "wave" />
1016 < div
1117 style = { {
1218 display : "flex" ,
19+ justifyContent : "space-between" ,
1320 padding : "10px 0" ,
1421 } }
1522 >
16- < Skeleton title = { false } paragraph = { { rows : 1 } } />
17- < Skeleton . Button active />
23+ < Skeleton variant = "text" width = "50%" animation = "wave" />
24+ < Skeleton variant = "rectangular" width = { 60 } height = { 30 } animation = "wave" />
1825 </ div >
1926 </ div >
2027 </ CardBase >
Original file line number Diff line number Diff line change 1- import { Row } from "antd " ;
1+ import { Grid } from "@mui/material " ;
22import React from "react" ;
33
44const SkeletonList = ( { listItem, repeat } ) => {
55 return (
6- < Row gutter = { 40 } style = { { marginTop : 32 } } >
6+ < Grid container spacing = { 5 } style = { { marginTop : 32 } } >
77 { [ ...Array ( repeat ) ] . map ( ( _item , index ) => (
88 < React . Fragment key = { index } > { listItem } </ React . Fragment >
99 ) ) }
10- </ Row >
10+ </ Grid >
1111 ) ;
1212} ;
1313
Original file line number Diff line number Diff line change 1- import { Row , Col , Skeleton } from "antd " ;
1+ import { Grid , Skeleton } from "@mui/material " ;
22import React from "react" ;
33import styled from "styled-components" ;
44
5- const SkeletonCol = styled ( Col ) `
6- .ant-skeleton-element {
7- width: 100%;
8- border-radius : "10px";
9- }
10- ` ;
5+ const SkeletonGrid = styled ( Grid ) ( ( ) => ( {
6+ '& .MuiSkeleton-root' : {
7+ width : " 100%" ,
8+ borderRadius : "10px" ,
9+ } ,
10+ } ) ) ;
1111
1212const SourceSkeleton = ( ) => {
1313 return (
14- < Row style = { { marginTop : 14 , width : "100%" } } >
15- < SkeletonCol span = { 24 } >
16- < Skeleton . Image
14+ < Grid container style = { { marginTop : 14 , width : "100%" } } >
15+ < SkeletonGrid xs = { 12 } >
16+ < Skeleton
17+ variant = "rectangular"
1718 style = { {
1819 width : "100%" ,
1920 height : "156px" ,
2021 borderRadius : "10px 10px 0 0 " ,
2122 } }
2223 />
23- < Skeleton active paragraph = { { rows : 2 } } />
24- </ SkeletonCol >
25- </ Row >
24+ < Skeleton variant = "text" width = "30%" animation = "wave" />
25+ < Skeleton variant = "text" width = "100%" animation = "wave" />
26+ < Skeleton variant = "text" width = "60%" animation = "wave" />
27+ </ SkeletonGrid >
28+ </ Grid >
2629 ) ;
2730} ;
2831
You can’t perform that action at this time.
0 commit comments