Skip to content

Commit

Permalink
Adjust for new schema variables and implements new components
Browse files Browse the repository at this point in the history
  • Loading branch information
ikprk committed Jul 8, 2024
1 parent 84a9f39 commit 3d959c5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
7 changes: 2 additions & 5 deletions packages/atlas/src/hooks/useCrtSectionFilters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,9 @@ export const SORTING_FILTERS = [
export const sortMappings: Record<string, [MarketplaceTokenOrderByInput, MarketplaceTokenOrderByInput]> = {
token: [MarketplaceTokenOrderByInput.SymbolDesc, MarketplaceTokenOrderByInput.SymbolAsc],
createdAt: [MarketplaceTokenOrderByInput.CreatedAtDesc, MarketplaceTokenOrderByInput.CreatedAtAsc],
dailyPriceChange: [
MarketplaceTokenOrderByInput.LastDayPriceChangeDesc,
MarketplaceTokenOrderByInput.LastDayPriceChangeAsc,
],
priceChange: [MarketplaceTokenOrderByInput.PriceChangeDesc, MarketplaceTokenOrderByInput.PriceChangeAsc],
price: [MarketplaceTokenOrderByInput.LastPriceDesc, MarketplaceTokenOrderByInput.LastPriceAsc],
liquidityChange: [MarketplaceTokenOrderByInput.WeeklyLiqChangeDesc, MarketplaceTokenOrderByInput.WeeklyLiqChangeAsc],
liquidityChange: [MarketplaceTokenOrderByInput.LiquidityChangeDesc, MarketplaceTokenOrderByInput.LiquidityChangeAsc],
liquidity: [MarketplaceTokenOrderByInput.LiquidityDesc, MarketplaceTokenOrderByInput.LiquidityAsc],
tradingVolume: [MarketplaceTokenOrderByInput.AmmVolumeDesc, MarketplaceTokenOrderByInput.AmmVolumeAsc],
marketCap: [MarketplaceTokenOrderByInput.MarketCapDesc, MarketplaceTokenOrderByInput.MarketCapAsc],
Expand Down
3 changes: 2 additions & 1 deletion packages/atlas/src/hooks/useTokensPagniation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ export const useTokensPagination = ({ initialPageSize = 10 }: { initialPageSize?
// TODO: we should add where clause to url params as well, but currently they are so small that it was omitted
const pagination = useQueryTableState<MarketplaceTokenOrderByInput>({
initialPerPage: initialPageSize,
initialOrderBy: MarketplaceTokenOrderByInput.LastDayPriceChangeDesc,
initialOrderBy: MarketplaceTokenOrderByInput.PriceChangeDesc,
})
const { setOrderBy, orderBy } = pagination

const {
creatorTokenWhereInput,
hasAppliedFilters,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import styled from '@emotion/styled'

import { CreatorTokenOrderByInput } from '@/api/queries/__generated__/baseTypes.generated'
import { HotCreatorTokens } from '@/components/HotCreatorTokens'
import { LastestCrtTrades } from '@/components/LastestCrtTrades'
import { LimitedWidthContainer } from '@/components/LimitedWidthContainer'
import { TopMovingTokens } from '@/components/TopCrtMovers'
Expand All @@ -22,7 +23,7 @@ export const CrtMarketplaceView = () => {

<TableFullWitdhtWrapper>
<LimitedWidthContainer big noBottomPadding>
<TopMovingTokens interval={30} tableTitle="Hot tokens" />
<HotCreatorTokens interval={30} tableTitle="Hot tokens" />
</LimitedWidthContainer>
</TableFullWitdhtWrapper>

Expand Down

0 comments on commit 3d959c5

Please sign in to comment.