From c83461f6cfa0badff7df52d1f83a307b8b16effd Mon Sep 17 00:00:00 2001 From: theborakompanioni Date: Tue, 24 Oct 2023 22:46:48 +0200 Subject: [PATCH] ui(dev): cleanup dev setup page and color link in Footer --- src/components/DevSetupPage.tsx | 29 ++++++++++++++--------------- src/components/Footer.tsx | 13 +++++-------- 2 files changed, 19 insertions(+), 23 deletions(-) diff --git a/src/components/DevSetupPage.tsx b/src/components/DevSetupPage.tsx index 8b690f43..2894de4c 100644 --- a/src/components/DevSetupPage.tsx +++ b/src/components/DevSetupPage.tsx @@ -1,32 +1,31 @@ +import { Link } from 'react-router-dom' import Sprite from './Sprite' import PageTitle from './PageTitle' -import { Link } from 'react-router-dom' import { routes } from '../constants/routes' -const LINK_JM_REGTEST_JOINMARKET2 = 'http://localhost:29080' -const LINK_JM_REGTEST_JOINMARKET2_AUTH = { +const DEFAULT_BASIC_AUTH = { user: 'joinmarket', password: 'joinmarket', } + +const LINK_JM_REGTEST_JOINMARKET2 = 'http://localhost:29080' +const LINK_JM_REGTEST_JOINMARKET2_AUTH = DEFAULT_BASIC_AUTH const LINK_JM_REGTEST_JOINMARKET3 = 'http://localhost:30080' const LINK_JM_REGTEST_EXPLORER = 'http://localhost:3002' -const LINK_JM_REGTEST_EXPLORER_AUTH = { - user: 'joinmarket', - password: 'joinmarket', -} -const LINK_JM_REGTEST_RPC_TERMINAL = 'http://localhost:3002/rpc-terminal' +const LINK_JM_REGTEST_EXPLORER_AUTH = DEFAULT_BASIC_AUTH +const LINK_JM_REGTEST_RPC_TERMINAL = `${LINK_JM_REGTEST_EXPLORER}/rpc-terminal` export default function DevSetupPage() { return ( -
+
Test Wallet
- Name: Satoshi + Name: Satoshi
- Password: test + Password: test
@@ -57,9 +56,9 @@ export default function DevSetupPage() { Basic Authentication
- User: {LINK_JM_REGTEST_JOINMARKET2_AUTH.user} + User: {LINK_JM_REGTEST_JOINMARKET2_AUTH.user}
- Password: {LINK_JM_REGTEST_JOINMARKET2_AUTH.password} + Password: {LINK_JM_REGTEST_JOINMARKET2_AUTH.password}
@@ -87,9 +86,9 @@ export default function DevSetupPage() { Basic Authentication
- User: {LINK_JM_REGTEST_EXPLORER_AUTH.user} + User: {LINK_JM_REGTEST_EXPLORER_AUTH.user}
- Password: {LINK_JM_REGTEST_EXPLORER_AUTH.password} + Password: {LINK_JM_REGTEST_EXPLORER_AUTH.password}
diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index 510929f3..f54261c6 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -105,14 +105,11 @@ export default function Footer() {
{isDebugFeatureEnabled('devSetupPage') && ( - <> -
- - Dev Setup - -
-
|
- +
+ + Dev Setup + +
)}