diff --git a/apps/trading-e2e/src/support/mocks/generate-withdrawals.ts b/apps/trading-e2e/src/support/mocks/generate-withdrawals.ts index f25534b37..e2c07e407 100644 --- a/apps/trading-e2e/src/support/mocks/generate-withdrawals.ts +++ b/apps/trading-e2e/src/support/mocks/generate-withdrawals.ts @@ -15,8 +15,8 @@ export const generateWithdrawals = ( status: WithdrawalStatus.Finalized, amount: '100', txHash: null, - createdTimestamp: new Date().toISOString(), - withdrawnTimestamp: new Date().toISOString(), + createdTimestamp: new Date('2022-02-02').toISOString(), + withdrawnTimestamp: new Date('2022-02-02').toISOString(), details: { __typename: 'Erc20WithdrawalDetails', receiverAddress: '0x72c22822A19D20DE7e426fB84aa047399Ddd8853', @@ -35,8 +35,8 @@ export const generateWithdrawals = ( amount: '100', txHash: '0x5d7b1a35ba6bd23be17bb7a159c13cdbb3121fceb94e9c6c510f5503dce48d03', - createdTimestamp: new Date().toISOString(), - withdrawnTimestamp: new Date().toISOString(), + createdTimestamp: new Date('2022-02-01').toISOString(), + withdrawnTimestamp: new Date('2022-02-01').toISOString(), details: { __typename: 'Erc20WithdrawalDetails', receiverAddress: '0x72c22822A19D20DE7e426fB84aa047399Ddd8853', diff --git a/apps/trading/pages/markets/trade-grid.tsx b/apps/trading/pages/markets/trade-grid.tsx index 3438b232a..2920e194d 100644 --- a/apps/trading/pages/markets/trade-grid.tsx +++ b/apps/trading/pages/markets/trade-grid.tsx @@ -34,11 +34,15 @@ const TradingViews = { type TradingView = keyof typeof TradingViews; -interface TradeGridProps { +interface TradeMarketHeaderProps { market: Market_market; + className?: string; } -export const TradeMarketHeader = ({ market }: TradeGridProps) => { +export const TradeMarketHeader = ({ + market, + className, +}: TradeMarketHeaderProps) => { const [open, setOpen] = useState(false); const candlesClose: string[] = (market?.candles || []) .map((candle) => candle?.close) @@ -48,8 +52,12 @@ export const TradeMarketHeader = ({ market }: TradeGridProps) => { 'font-sans font-normal mb-0 text-dark/80 dark:text-white/80 text-ui-small'; const itemValueClassName = 'capitalize font-sans tracking-tighter text-black dark:text-white text-ui'; + const headerClassname = classNames( + 'w-full p-8 bg-white dark:bg-black', + className + ); return ( -
+