on master help sign in
- Added text-mono to wallet addresses in breadcrumbs
2ee2847Chris Johnson
src/components/Header.js+1−1
@@ -23,7 +23,7 @@ const Crumbs = (props) => {
23 prop-size={'sm'}
23 prop-size={'sm'}
24 key={ `history-button-${idx}` }
24 key={ `history-button-${idx}` }
25 onClick={ () => skipRoute(history.size - idx - 1) }>
25 onClick={ () => skipRoute(history.size - idx - 1) }>
26− { `${renderRoute(props, route)}` }
26+ { renderRoute(props, route) }
27 </Button>
27 </Button>
28
28
29 {
29 {
src/lib/router.js+4−2
@@ -1,5 +1,7 @@
1import * as ob from 'urbit-ob'
1import * as ob from 'urbit-ob'
2
2
3+import React from 'react';
4+
3import AcceptTransfer from '../views/AcceptTransfer'
5import AcceptTransfer from '../views/AcceptTransfer'
4import CancelTransfer from '../views/CancelTransfer'
6import CancelTransfer from '../views/CancelTransfer'
5import CreateGalaxy from '../views/CreateGalaxy'
7import CreateGalaxy from '../views/CreateGalaxy'
@@ -105,8 +107,8 @@ const renderRoute = (props, route) => {
105 Nothing: () => 'Wallet',
107 Nothing: () => 'Wallet',
106 Just: (wal) =>
108 Just: (wal) =>
107 wal.value instanceof EthereumWallet
109 wal.value instanceof EthereumWallet
108− ? wal.value.address
110+ ? (<span className="text-mono">{wal.value.address}</span>)
109− : addressFromSecp256k1Public(wal.value.publicKey)
111+ : (<span className="text-mono">{addressFromSecp256k1Public(wal.value.publicKey)}</span>)
110 })
112 })
111
113
112 : route === ROUTE_NAMES.MNEMONIC
114 : route === ROUTE_NAMES.MNEMONIC