on master help sign in
Fix custom path inputs for hardware wallets
74ca391Fang
src/views/Login/Ledger.js+5−7
@@ -90,15 +90,13 @@ export default function Ledger({ loginCompleted }) {
90 const truePathSelection =
90 const truePathSelection =
91 basePath === 'custom' ? (
91 basePath === 'custom' ? (
92 <Input
92 <Input
93− className="pt-8 mt-4 text-mono"
93+ className="mt3"
94− prop-size="md"
95− prop-format="innerLabel"
96 name="hdPath"
94 name="hdPath"
97− value={addHdPrefix(hdPath)}
95+ label="HD path"
98 autocomplete="off"
96 autocomplete="off"
97+ initialValue={addHdPrefix(hdPath)}
99− onChange={setHdPath}>
98+ onValue={setHdPath}
100− <InnerLabel>HD Path</InnerLabel>
99+ />
101− </Input>
102 ) : (
100 ) : (
103 <InnerLabelDropdown
101 <InnerLabelDropdown
104 className="mt-4"
102 className="mt-4"
src/views/Login/Trezor.js+5−7
@@ -70,15 +70,13 @@ export default function Trezor({ loginCompleted }) {
70 const pathSelection =
70 const pathSelection =
71 account !== 'custom' ? null : (
71 account !== 'custom' ? null : (
72 <Input
72 <Input
73− className="mt-8 pt-8 text-mono"
73+ className="mt3"
74− prop-size="md"
75− prop-format="innerLabel"
76 name="hdPath"
74 name="hdPath"
77− value={hdPath}
75+ label="HD path"
78 autocomplete="off"
76 autocomplete="off"
77+ initialValue={hdPath}
79− onChange={setHdPath}>
78+ onValue={setHdPath}
80− <InnerLabel>HD Path</InnerLabel>
79+ />
81− </Input>
82 );
80 );
83
81
84 return (
82 return (