Skip to content

Commit

Permalink
fix:market-table-component-style (#3550)
Browse files Browse the repository at this point in the history
  • Loading branch information
oidsixer authored Oct 12, 2023
1 parent 0d8cf15 commit d041248
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
5 changes: 3 additions & 2 deletions packages/kit/src/store/reducers/market.ts
Original file line number Diff line number Diff line change
Expand Up @@ -397,13 +397,14 @@ export const MarketSlicer = createSlice({
: (marketTokens[id1]?.priceChangePercentage24H ?? 0) -
(marketTokens[id2]?.priceChangePercentage24H ?? 0);
}
case EMarketCellData.Token24hVolume: {
/*case EMarketCellData.Token24hVolume: {
return payload.direction === 'down'
? (marketTokens[id2]?.totalVolume ?? 0) -
(marketTokens[id1]?.totalVolume ?? 0)
: (marketTokens[id1]?.totalVolume ?? 0) -
(marketTokens[id2]?.totalVolume ?? 0);
}
}*/
//隐藏24h volume
case EMarketCellData.CollectionStarOrSerialNumber:
case EMarketCellData.TokenMarketCap: {
return payload.direction === 'down'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ const MarketListHeader: FC<MarketListHeaderProps> = ({ headTags }) => {
tag.id === EMarketCellData.TokenInfo ||
tag.id === EMarketCellData.TokenPrice ||
tag.id === EMarketCellData.Token24hChange ||
tag.id === EMarketCellData.Token24hVolume ||
/*tag.id === EMarketCellData.Token24hVolume ||*/
//隐藏24hVolume
tag.id === EMarketCellData.TokenMarketCap ||
tag.id === EMarketCellData.TokenSparklineChart
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ const MarketTokenCell: FC<MarketTokenCellProps> = ({
</ListItem.Column>
);
}
case EMarketCellData.Token24hVolume: {
/*case EMarketCellData.Token24hVolume: {
return marketTokenItem &&
marketTokenItem.totalVolume !== undefined ? (
<ListItem.Column
Expand All @@ -396,7 +396,8 @@ const MarketTokenCell: FC<MarketTokenCellProps> = ({
</Box>
</ListItem.Column>
);
}
}*/
//隐藏24hVolume
case EMarketCellData.TokenMarketCap: {
return marketTokenItem &&
marketTokenItem.marketCap !== undefined ? (
Expand Down
10 changes: 6 additions & 4 deletions packages/kit/src/views/Market/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export const ListHeadTags: ListHeadTagType[] = [
{
id: EMarketCellData.Token24hChange,
title: 'form__24h%_uppercase',
minW: '70px',
minW: '96px',
textAlign: 'right',
showVerticalLayout: true,
},
Expand All @@ -97,17 +97,19 @@ export const ListHeadTags: ListHeadTagType[] = [
minW: '130px',
textAlign: 'right',
showVerticalLayout: false,
hide824Width: true,
hide824Width: true,
hide924Width: true,
},
{
/*{
id: EMarketCellData.Token24hVolume,
title: 'form__24h_volume_uppercase',
minW: '120px',
textAlign: 'right',
showVerticalLayout: false,
hide924Width: true,
hide824Width: true,
},
},*/
//不再显示24h volume
{
id: EMarketCellData.TokenSparklineChart,
title: 'form__last_7_days_uppercase',
Expand Down

0 comments on commit d041248

Please sign in to comment.