Skip to content

Commit

Permalink
CR fixes v2
Browse files Browse the repository at this point in the history
  • Loading branch information
ikprk committed Jul 9, 2024
1 parent 3d959c5 commit 435cf42
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ const InnerContainer = styled(FlexBox)`
gap: ${sizes(8)};
width: fit-content;
align-items: center;
animation: ${ScrollSide} 40s linear infinite;
animation: ${ScrollSide} 80s linear infinite;
scrollbar-width: none;
scrollbar-height: none;
:hover {
animation-play-state: paused;
Expand All @@ -113,6 +115,7 @@ const InnerContainer = styled(FlexBox)`
const RibbonContainer = styled(FlexBox)`
overflow-x: auto;
scrollbar-width: none;
scrollbar-height: none;
background-color: ${cVar('colorBackgroundMuted')};
padding: ${sizes(3)} ${sizes(4)};
width: calc(100% + var(--size-global-horizontal-padding) * 2);
Expand Down
2 changes: 1 addition & 1 deletion packages/atlas/src/components/Table/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ export const Table = <T extends object>({
initialState: { pageSize },
disableSortBy: !onColumnSortClick,
disableMultiSort: true,
disableSortRemove: true,
manualSortBy: true,
},
...(onColumnSortClick ? [useSortBy] : []),
useSortBy,
usePagination,
useFlexLayout
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export const TopMovingTokens = ({ interval, tableTitle }: { interval: number; ta
type: 'options',
options: [
{
label: 'Winners',
label: 'Gainers',
value: true,
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,19 @@ export const tableLoadingData = Array.from({ length: 10 }, () => ({
token: (
<ColumnBox>
<SkeletonLoader rounded height={32} width={32} />
<SkeletonLoader height={20} width="40%" />
<SkeletonLoader height={20} width="60%" />
</ColumnBox>
),
status: <SkeletonLoader height={20} width="60%" />,
createdAt: <SkeletonLoader height={20} width="50%" />,
marketCap: <SkeletonLoader height={20} width="50%" />,
totalRevenue: <SkeletonLoader height={20} width="50%" />,
holders: <SkeletonLoader height={20} width="50%" />,
status: <SkeletonLoader height={32} width="80%" />,
priceChange: <SkeletonLoader height={32} width="80%" />,
price: <SkeletonLoader height={32} width="80%" />,
liquidityChange: <SkeletonLoader height={32} width="80%" />,
liquidity: <SkeletonLoader height={32} width="80%" />,
tradingVolume: <SkeletonLoader height={32} width="80%" />,
createdAt: <SkeletonLoader height={32} width="80%" />,
marketCap: <SkeletonLoader height={32} width="80%" />,
totalRevenue: <SkeletonLoader height={32} width="80%" />,
holders: <SkeletonLoader height={42} width="80%" />,
}))

const COLUMNS: TableProps['columns'] = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const CrtMarketplaceView = () => {

<TableFullWitdhtWrapper>
<LimitedWidthContainer big noBottomPadding>
<TopMovingTokens interval={30} tableTitle="Top Movers" />
<TopMovingTokens interval={30} tableTitle="Top Gainers" />
</LimitedWidthContainer>
</TableFullWitdhtWrapper>

Expand Down

0 comments on commit 435cf42

Please sign in to comment.