diff --git a/apps/trading/components/welcome-dialog/welcome-landing-dialog.tsx b/apps/trading/components/welcome-dialog/welcome-landing-dialog.tsx index b65f0cbe3..32e93258b 100644 --- a/apps/trading/components/welcome-dialog/welcome-landing-dialog.tsx +++ b/apps/trading/components/welcome-dialog/welcome-landing-dialog.tsx @@ -2,7 +2,7 @@ import React, { useCallback } from 'react'; import { useMarketList } from '@vegaprotocol/market-list'; import { t } from '@vegaprotocol/i18n'; import { useAssetDetailsDialogStore } from '@vegaprotocol/assets'; -import { Link as UILink } from '@vegaprotocol/ui-toolkit'; +import { Link as UILink, TinyScroll } from '@vegaprotocol/ui-toolkit'; import type { OnCellClickHandler } from '../select-market'; import type { MarketMaybeWithDataAndCandles } from '@vegaprotocol/market-list'; import { @@ -55,8 +55,8 @@ export const SelectMarketLandingTable = ({ const showProposed = (markets?.length || 0) <= 5; return ( <> -
@@ -78,7 +78,7 @@ export const SelectMarketLandingTable = ({ ))} -
{t('Could not load market')}
diff --git a/libs/ui-toolkit/src/components/index.ts b/libs/ui-toolkit/src/components/index.ts index 95fddfd41..897d3ee59 100644 --- a/libs/ui-toolkit/src/components/index.ts +++ b/libs/ui-toolkit/src/components/index.ts @@ -40,6 +40,7 @@ export * from './tabs'; export * from './text-area'; export * from './theme-switcher'; export * from './thumbs'; +export * from './tiny-scroll'; export * from './toast'; export * from './toggle'; export * from './tooltip'; diff --git a/libs/ui-toolkit/src/components/tiny-scroll/index.tsx b/libs/ui-toolkit/src/components/tiny-scroll/index.tsx new file mode 100644 index 000000000..06e4bbd13 --- /dev/null +++ b/libs/ui-toolkit/src/components/tiny-scroll/index.tsx @@ -0,0 +1 @@ +export * from './tiny-scroll'; diff --git a/libs/market-depth/src/lib/orderbook.module.scss b/libs/ui-toolkit/src/components/tiny-scroll/tiny-scroll.module.scss similarity index 100% rename from libs/market-depth/src/lib/orderbook.module.scss rename to libs/ui-toolkit/src/components/tiny-scroll/tiny-scroll.module.scss diff --git a/libs/ui-toolkit/src/components/tiny-scroll/tiny-scroll.tsx b/libs/ui-toolkit/src/components/tiny-scroll/tiny-scroll.tsx new file mode 100644 index 000000000..a03600164 --- /dev/null +++ b/libs/ui-toolkit/src/components/tiny-scroll/tiny-scroll.tsx @@ -0,0 +1,20 @@ +import styles from './tiny-scroll.module.scss'; +import { forwardRef } from 'react'; +import classNames from 'classnames'; +import type { HTMLAttributes, ReactNode } from 'react'; + +export interface Props extends HTMLAttributes