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
)} -
+
-
+
{ }} overlay={(props) => ( - +
{item.bondValue.displayLocktime} ({item.bondValue.displayExpiresIn})
diff --git a/src/i18n/locales/en/translation.json b/src/i18n/locales/en/translation.json index 3d18781d..9b69fc72 100644 --- a/src/i18n/locales/en/translation.json +++ b/src/i18n/locales/en/translation.json @@ -55,7 +55,8 @@ "warning_alert_button_ok": "Fine with me.", "cheatsheet": "Cheatsheet", "websocket_connected": "Websocket connected", - "websocket_disconnected": "Websocket disconnected" + "websocket_disconnected": "Websocket disconnected", + "orderbook": "Orderbook" }, "onboarding": { "splashscreen_title": "Jam", diff --git a/src/index.css b/src/index.css index 748ffb2a..ebefaba6 100644 --- a/src/index.css +++ b/src/index.css @@ -483,11 +483,11 @@ table.striped tr:hover td { } } -footer .cheatsheet-link.nav-link { +footer .nav-link { color: var(--bs-gray-900); } -:root[data-theme='dark'] footer .cheatsheet-link.nav-link { +:root[data-theme='dark'] footer .nav-link { color: var(--bs-gray-400); }