diff --git a/src/pages/TrueSightV2/components/SmallKyberScoreMeter.tsx b/src/pages/TrueSightV2/components/SmallKyberScoreMeter.tsx index 4ae7a6377b..0823a383b8 100644 --- a/src/pages/TrueSightV2/components/SmallKyberScoreMeter.tsx +++ b/src/pages/TrueSightV2/components/SmallKyberScoreMeter.tsx @@ -8,7 +8,7 @@ import Column from 'components/Column' import Icon from 'components/Icons/Icon' import { RowFit } from 'components/Row' -import { IKyberScoreChart } from '../types' +import { IKyberScoreChart, ITokenList } from '../types' import { calculateValueToColor, formatTokenPrice } from '../utils' import { gaugeList } from './KyberScoreMeter' import SimpleTooltip from './SimpleTooltip' @@ -27,8 +27,16 @@ const GaugeValue = styled.div` justify-content: center; bottom: 6px; ` -function SmallKyberScoreMeter({ data, disabledTooltip }: { data?: IKyberScoreChart; disabledTooltip?: boolean }) { - const value = data?.kyberScore +function SmallKyberScoreMeter({ + data, + disabledTooltip, + token, +}: { + data?: IKyberScoreChart + disabledTooltip?: boolean + token: ITokenList +}) { + const value = token?.kyberScore const theme = useTheme() const emptyColor = theme.darkMode ? theme.subText + '30' : theme.border + '60' const activeGaugeValue = value ? (gaugeList.length * value) / 100 : 0 @@ -60,8 +68,8 @@ function SmallKyberScoreMeter({ data, disabledTooltip }: { data?: IKyberScoreCha KyberScore:{' '} - - {data.kyberScore || '--'} ({data.tag || t`Not Applicable`}) + + {value || '--'} ({data.tag || t`Not Applicable`}) diff --git a/src/pages/TrueSightV2/components/table/index.tsx b/src/pages/TrueSightV2/components/table/index.tsx index 39f5e60be0..32321464d2 100644 --- a/src/pages/TrueSightV2/components/table/index.tsx +++ b/src/pages/TrueSightV2/components/table/index.tsx @@ -689,12 +689,8 @@ const WidgetTokenRow = ({ - - + + {latestKyberScore?.tag || t`Not Applicable`} diff --git a/src/pages/TrueSightV2/hooks/useKyberAIData.tsx b/src/pages/TrueSightV2/hooks/useKyberAIData.tsx index 57164cb6d5..aaa1687028 100644 --- a/src/pages/TrueSightV2/hooks/useKyberAIData.tsx +++ b/src/pages/TrueSightV2/hooks/useKyberAIData.tsx @@ -40,7 +40,7 @@ const kyberAIApi = createApi({ ...DEFAULT_PARAMS_BY_TAB[type as KyberAIListType], ...filterSort, page: page || 1, - size: pageSize || 10, + pageSize: pageSize || 10, keywords, }, }), diff --git a/src/pages/TrueSightV2/pages/TokenAnalysisList.tsx b/src/pages/TrueSightV2/pages/TokenAnalysisList.tsx index d95b21bda8..8da68d17e7 100644 --- a/src/pages/TrueSightV2/pages/TokenAnalysisList.tsx +++ b/src/pages/TrueSightV2/pages/TokenAnalysisList.tsx @@ -557,12 +557,8 @@ const TokenRow = React.memo(function TokenRow({ - - + + {latestKyberScore?.tag || 'Not Applicable'}