@@ -69,10 +69,7 @@ export default function Ledger({ loginCompleted }) {
69 const pathOptions = [
69 const pathOptions = [
70 { title: 'Ledger Live', value: LEDGER_LIVE_PATH },
70 { title: 'Ledger Live', value: LEDGER_LIVE_PATH },
71 { title: 'Ledger Legacy', value: LEDGER_LEGACY_PATH },
71 { title: 'Ledger Legacy', value: LEDGER_LEGACY_PATH },
73− title: 'Custom path',
72+ { title: 'Custom path', value: 'custom' },
77 const basePathTitle = pathOptions.find(o => o.value === basePath).title;
74 const basePathTitle = pathOptions.find(o => o.value === basePath).title;
@@ -90,7 +87,7 @@ export default function Ledger({ loginCompleted }) {
90 className="mt-8"
87 className="mt-8"
91 options={pathOptions}
88 options={pathOptions}
92 handleUpdate={handlePathSelection}
89 handleUpdate={handlePathSelection}
93− title={'Derivation path'}
90+ title="Derivation path"
94 currentSelectionTitle={basePathTitle}
91 currentSelectionTitle={basePathTitle}
95 fullWidth={true}
92 fullWidth={true}
@@ -106,7 +103,7 @@ export default function Ledger({ loginCompleted }) {
106 value={addHdPrefix(hdPath)}
103 value={addHdPrefix(hdPath)}
107 autocomplete="off"
104 autocomplete="off"
108 onChange={setHdPath}>
105 onChange={setHdPath}>
109− <InnerLabel>{'HD Path'}</InnerLabel>
106+ <InnerLabel>HD Path</InnerLabel>
112 <InnerLabelDropdown
109 <InnerLabelDropdown
@@ -115,7 +112,7 @@ export default function Ledger({ loginCompleted }) {
115 prop-format="innerLabel"
112 prop-format="innerLabel"
116 options={accountOptions}
113 options={accountOptions}
117 handleUpdate={handleAccountSelection}
114 handleUpdate={handleAccountSelection}
118− title={'Account'}
115+ title="Account"
119 currentSelectionTitle={accountTitle}
116 currentSelectionTitle={accountTitle}
120 fullWidth={true}
117 fullWidth={true}
@@ -123,54 +120,46 @@ export default function Ledger({ loginCompleted }) {
126− <H1>{'Authenticate With Your Ledger'}</H1>
123+ <H1>Authenticate With Your Ledger</H1>
128− <H2>{'Running on HTTPS?'}</H2>
125+ <H2>Running on HTTPS?</H2>
131− {`Connect and authenticate to your Ledger, and then open the
128+ Connect and authenticate to your Ledger, and then open the "Ethereum"
132− "Ethereum" application. If you're running on older firmware,
129+ application. If you're running on older firmware, make sure the "browser
133− make sure the "browser support" option is turned on. To sign
130+ support" option is turned on. To sign transactions, you'll also need to
134− transactions, you'll also need to enable the "contract data"
131+ enable the "contract data" option.
139− {`If you'd like to use a custom derivation path, you may enter
135+ If you'd like to use a custom derivation path, you may enter it below.
143− <H2>{'Running on HTTP?'}</H2>
138+ <H2>Running on HTTP?</H2>
145− <P>{`To authenticate and sign transactions with a Ledger, Bridge
141+ To authenticate and sign transactions with a Ledger, Bridge must be
146− must be serving over HTTPS on localhost. You can do this via the
142+ serving over HTTPS on localhost. You can do this via the following:
147− following:`}</P>
143+ </P>
149− <ol className={'measure-md'}>
145+ <ol className="measure-md">
150− <li className={'mt-4'}>
146+ <li className="mt-4">
151− {'Install'}{' '}
147+ Install
152− <a target={'_blank'} href={'https://github.com/FiloSottile/mkcert'}>
148+ <a target="_blank" href="https://github.com/FiloSottile/mkcert">
153− {'mkcert'}
149+ mkcert
156− <li className={'mt-4'}>
152+ <li className="mt-4">
157− {'Install a local certificate authority via '}
153+ Install a local certificate authority via <code>mkcert -install</code>
158− <code>{'mkcert -install'}</code>
160− <li className={'mt-4'}>
155+ <li className="mt-4">
162− <code>{'bridge'}</code>
163− {' directory, generate a certificate valid for localhost via '}{' '}
156+ In your <code>bridge</code> directory, generate a certificate valid
164− <code>{'mkcert localhost'}</code>
157+ for localhost via <code>mkcert localhost</code>. This will produce two
166− {'This will produce two files: '}
167− <code>{'localhost.pem'}</code> {', the local certificate, and '}
158+ files: <code>localhost.pem</code>, the local certificate, and
168− <code>{'localhost-key.pem'}</code>
169− {', its corresponding private key.'}
159+ <code>localhost-key.pem</code> , its corresponding private key.
171− <li className={'mt-4'}>
161+ <li className="mt-4">
173− <code>{'python bridge-https.py'}</code>
162+ Run <code>python bridge-https.py</code>