on master help sign in
address straggling review comments
commit23b1066cc3e8171a70c0d88d135a1d4f3f97fe99 authorLiam Fitzgerald <liam@urizen.co> dateWed 25 Mar 2020, 08:40 (7 years ago) parentded2e62
4 files changed+10−9
src/components/InlineEthereumTransaction.js+1−1 src/store/hosting.js+1−1 src/views/UrbitID/Home.js+6−2 src/views/UrbitOS/Home.js+2−5
src/components/InlineEthereumTransaction.js+1−1
@@ -191,7 +191,7 @@ export default function InlineEthereumTransaction({
191191 );
192192
193193 const gasInfo = useMemo(() => {
194− const extra = numTxs === 1 ? '' : `* ${numTxs} TXN`;
194+ const extra = numTxs === 1 ? '' : `* ${numTxs} txs`;
195195 return showGasDetails
196196 ? `${gasPrice} Gwei * ${gasLimit} ${extra} = ${maxCost} ETH`
197197 : `${maxCost} ETH`;
src/store/hosting.js+1−1
@@ -9,7 +9,7 @@ import { useNetwork } from 'store/network';
99export const HostingContext = createContext(null);
1010
1111const HOSTING_DETAILS = {
12− DEV: { url: '', domain: 'liam.tlon.network', disabled: false },
12+ DEV: { url: '', domain: 'liam.tlon.network', disabled: true },
1313 MAINNET: { url: '', domain: '', disabled: true },
1414};
1515
src/views/UrbitID/Home.js+6−2
@@ -99,8 +99,12 @@ export default function UrbitIDHome() {
9999 disabledDetail={
100100 <B className="wrap ws-normal"> · Ownership key required</B>
101101 }
102− detail="Reset Master Key and all other keys">
103− Reset Keys
102+ detail={
103+ isMasterTicket
104+ ? 'Reset Master Key and all other keys'
105+ : 'Transfer to Master Ticket, resetting all keys'
106+ }>
107+ {isMasterTicket ? 'Reset Keys' : 'Transfer to Master Ticket'}
104108 </Grid.Item>
105109
106110 <Grid.Divider />
src/views/UrbitOS/Home.js+2−5
@@ -35,10 +35,7 @@ export default function UrbitOSHome({ manualNetworkSeed }) {
3535 const [showKeys, setShowKeys] = useState(false);
3636
3737 const showSponsor = azimuth.getPointSize(point) !== azimuth.PointSize.Galaxy;
38− const toggleShowKeys = useCallback(() => setShowKeys(!showKeys), [
39− setShowKeys,
40− showKeys,
41− ]);
38+ const toggleShowKeys = useCallback(() => setShowKeys(s => !s), [setShowKeys]);
4239
4340 const goNetworkingKeys = useCallback(() => push(names.NETWORKING_KEYS), [
4441 names,
@@ -80,7 +77,7 @@ export default function UrbitOSHome({ manualNetworkSeed }) {
8077 <Grid.Item
8178 full
8279 as={ForwardButton}
83− accessory={showKeys ? '▲' : '▼'}
80+ accessory={showKeys ? '▼' : '▲'}
8481 onClick={toggleShowKeys}>
8582 View Networking Keys
8683 </Grid.Item>