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 ( -
Satoshi
+ Name: Satoshi
test
+ Password: test
{LINK_JM_REGTEST_JOINMARKET2_AUTH.user}
+ User: {LINK_JM_REGTEST_JOINMARKET2_AUTH.user}
{LINK_JM_REGTEST_JOINMARKET2_AUTH.password}
+ Password: {LINK_JM_REGTEST_JOINMARKET2_AUTH.password}
{LINK_JM_REGTEST_EXPLORER_AUTH.user}
+ User: {LINK_JM_REGTEST_EXPLORER_AUTH.user}
{LINK_JM_REGTEST_EXPLORER_AUTH.password}
+ Password: {LINK_JM_REGTEST_EXPLORER_AUTH.password}