Fix custom path inputs for hardware wallets
commit74ca3913b1a2905016e8ec240d930e259b5df44a
authorFang <git@fang.io>
dateTue 25 Jun 2019, 17:09 (7 years ago)
parentfe527da
src/views/Login/Ledger.js+5−7
@@ -90,15 +90,13 @@ export default function Ledger({ loginCompleted }) {
9090 const truePathSelection =
9191 basePath === 'custom' ? (
9292 <Input
93− className="pt-8 mt-4 text-mono"
94− prop-size="md"
95− prop-format="innerLabel"
93+ className="mt3"
9694 name="hdPath"
97− value={addHdPrefix(hdPath)}
95+ label="HD path"
9896 autocomplete="off"
99− onChange={setHdPath}>
100− <InnerLabel>HD Path</InnerLabel>
101− </Input>
97+ initialValue={addHdPrefix(hdPath)}
98+ onValue={setHdPath}
99+ />
102100 ) : (
103101 <InnerLabelDropdown
104102 className="mt-4"
src/views/Login/Trezor.js+5−7
@@ -70,15 +70,13 @@ export default function Trezor({ loginCompleted }) {
7070 const pathSelection =
7171 account !== 'custom' ? null : (
7272 <Input
73− className="mt-8 pt-8 text-mono"
74− prop-size="md"
75− prop-format="innerLabel"
73+ className="mt3"
7674 name="hdPath"
77− value={hdPath}
75+ label="HD path"
7876 autocomplete="off"
79− onChange={setHdPath}>
80− <InnerLabel>HD Path</InnerLabel>
81− </Input>
77+ initialValue={hdPath}
78+ onValue={setHdPath}
79+ />
8280 );
8381
8482 return (