@@ -2,9 +2,9 @@ import { type ReactNode } from 'react'
22import { Text } from 'rebass'
33import styled from 'styled-components'
44
5+ import Skeleton from 'components/Skeleton'
56import { HStack , Stack } from 'components/Stack'
67import useTheme from 'hooks/useTheme'
7- import PositionSkeleton from 'pages/Earns/components/PositionSkeleton'
88
99const DEFAULT_CHART_HEIGHT = 360
1010
@@ -64,19 +64,19 @@ const PoolChartStateLayout = ({
6464export const PoolChartSkeleton = ( { height = DEFAULT_CHART_HEIGHT } : PoolChartSkeletonProps ) => {
6565 return (
6666 < PoolChartStateLayout gap = { 12 } height = { height } >
67- < PositionSkeleton height = { height } width = "100%" />
67+ < Skeleton height = { height } width = "100%" />
6868 </ PoolChartStateLayout >
6969 )
7070}
7171
7272const LiquidityFlowChartSkeleton = ( { height = DEFAULT_CHART_HEIGHT } : PoolChartSkeletonProps ) => {
7373 return (
74- < Stack gap = { 8 } >
74+ < Stack gap = { 12 } >
7575 < PoolChartSkeleton height = { height } />
7676 < HStack gap = { 16 } justify = "center" wrap = "wrap" >
7777 { Array . from ( { length : 3 } ) . map ( ( _ , index ) => (
7878 < HStack align = "center" gap = { 16 } key = { index } >
79- < PositionSkeleton height = { 16 } width = { 120 } />
79+ < Skeleton height = { 14.5 } width = { 120 } />
8080 </ HStack >
8181 ) ) }
8282 </ HStack >
@@ -99,10 +99,10 @@ const EarningChartSkeleton = ({ height = DEFAULT_CHART_HEIGHT }: PoolChartSkelet
9999 sx = { { margin : '0 auto' } }
100100 width = { isCompact ? '100%' : 'fit-content' }
101101 >
102- < PositionSkeleton style = { { borderRadius : 999 } } height = { breakdownChartSize } width = { breakdownChartSize } />
103- < Stack gap = { 8 } width = "fit-content" >
102+ < Skeleton circle height = { breakdownChartSize } width = { breakdownChartSize } />
103+ < Stack gap = { 12 } width = "fit-content" >
104104 { Array . from ( { length : 4 } ) . map ( ( _ , index ) => (
105- < PositionSkeleton key = { index } height = { 14 } width = { 120 } />
105+ < Skeleton height = { 17 } key = { index } width = { 120 } />
106106 ) ) }
107107 </ Stack >
108108 </ Stack >
0 commit comments