on master help sign in
- Added text-mono to wallet addresses in breadcrumbs
commit2ee284721fe42464379f7696aeee3ab8dd1ceabd authorChris Johnson <chris@cjohnson.io> dateThu 7 Mar 2019, 13:02 (8 years ago) parentdcb6c40
2 files changed+5−3
src/components/Header.js+1−1 src/lib/router.js+4−2
src/components/Header.js+1−1
@@ -23,7 +23,7 @@ const Crumbs = (props) => {
2323 prop-size={'sm'}
2424 key={ `history-button-${idx}` }
2525 onClick={ () => skipRoute(history.size - idx - 1) }>
26− { `${renderRoute(props, route)}` }
26+ { renderRoute(props, route) }
2727 </Button>
2828
2929 {
src/lib/router.js+4−2
@@ -1,5 +1,7 @@
11import * as ob from 'urbit-ob'
22
3+import React from 'react';
4+
35import AcceptTransfer from '../views/AcceptTransfer'
46import CancelTransfer from '../views/CancelTransfer'
57import CreateGalaxy from '../views/CreateGalaxy'
@@ -105,8 +107,8 @@ const renderRoute = (props, route) => {
105107 Nothing: () => 'Wallet',
106108 Just: (wal) =>
107109 wal.value instanceof EthereumWallet
108− ? wal.value.address
109− : addressFromSecp256k1Public(wal.value.publicKey)
110+ ? (<span className="text-mono">{wal.value.address}</span>)
111+ : (<span className="text-mono">{addressFromSecp256k1Public(wal.value.publicKey)}</span>)
110112 })
111113
112114 : route === ROUTE_NAMES.MNEMONIC