diff --git a/src/components/orderbook/Orderbook.tsx b/src/components/orderbook/Orderbook.tsx index 8644c3ac..d85a019b 100644 --- a/src/components/orderbook/Orderbook.tsx +++ b/src/components/orderbook/Orderbook.tsx @@ -85,11 +85,11 @@ const offerToTableEntry = ( } } -interface OrderbookProps { - isModal?: boolean +interface OrderbookContentProps { + className?: string } -export const Orderbook = ({ isModal = false }: OrderbookProps) => { +export const OrderbookContent = ({ className }: OrderbookContentProps) => { const { t, i18n } = useTranslation() const nickname = useStore(jmSessionStore, (state) => state.state?.nickname) @@ -248,173 +248,86 @@ export const Orderbook = ({ isModal = false }: OrderbookProps) => { } return ( -
- {searchQuery === '' - ? t('orderbook.text_orderbook_summary', { - count: tableEntries.length, - counterpartyCount: new Set(tableEntries.map((e) => e.counterparty)).size, - }) - : t('orderbook.text_orderbook_summary_filtered', summary)} -
-+ {searchQuery === '' + ? t('orderbook.text_orderbook_summary', { + count: tableEntries.length, + counterpartyCount: new Set(tableEntries.map((e) => e.counterparty)).size, + }) + : t('orderbook.text_orderbook_summary_filtered', summary)} +
+- {searchQuery === '' - ? t('orderbook.text_orderbook_summary', { - count: tableEntries.length, - counterpartyCount: new Set(tableEntries.map((e) => e.counterparty)).size, - }) - : t('orderbook.text_orderbook_summary_filtered', summary)} -
-