diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index b73fe033..dddfdabe 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -12,6 +12,7 @@ import { InfoModal } from './Modal' import { isDebugFeatureEnabled, isDevMode } from '../constants/debugFeatures' import { routes } from '../constants/routes' import { toSemVer } from '../utils' +import { OrderbookOverlay } from './Orderbook' import packageInfo from '../../package.json' const APP_DISPLAY_VERSION = (() => { @@ -29,8 +30,10 @@ export default function Footer() { const [showBetaWarning, setShowBetaWarning] = useState(false) const [showCheatsheet, setShowCheatsheet] = useState(false) + const [isShowOrderbook, setIsShowOrderbook] = useState(false) const cheatsheetEnabled = useMemo(() => !!currentWallet, [currentWallet]) + const orderbookEnabled = useMemo(() => !!currentWallet, [currentWallet]) const websocketConnected = useMemo(() => websocketState === WebSocket.OPEN, [websocketState]) useEffect(() => { @@ -82,7 +85,7 @@ export default function Footer() { -
+
{cheatsheetEnabled && ( <> setShowCheatsheet(false)} /> @@ -90,12 +93,34 @@ export default function Footer() { setShowCheatsheet(true)} >
-
{t('footer.cheatsheet')}
+
{t('footer.cheatsheet')}
+
+
+ + + )} + {orderbookEnabled && ( + <> + setIsShowOrderbook(false)} + nickname={serviceInfo?.nickname ?? undefined} + /> + + setIsShowOrderbook(true)} + > +
+ +
{t('footer.orderbook')}
@@ -104,13 +129,13 @@ export default function Footer() {
{isDebugFeatureEnabled('devSetupPage') && ( -
+
Dev Setup
)} -
+
-
+