remove redundant info help text from wallets
This commit is contained in:
parent
506bb364d1
commit
3608d133d7
@ -102,7 +102,7 @@ export default function WalletSettings () {
|
|||||||
|
|
||||||
function WalletFields ({ wallet: { config, fields, isConfigured } }) {
|
function WalletFields ({ wallet: { config, fields, isConfigured } }) {
|
||||||
return fields
|
return fields
|
||||||
.map(({ name, label, type, help, optional, editable, clientOnly, serverOnly, ...props }, i) => {
|
.map(({ name, label = '', type, help, optional, editable, clientOnly, serverOnly, ...props }, i) => {
|
||||||
const rawProps = {
|
const rawProps = {
|
||||||
...props,
|
...props,
|
||||||
name,
|
name,
|
||||||
@ -115,7 +115,7 @@ function WalletFields ({ wallet: { config, fields, isConfigured } }) {
|
|||||||
{label}
|
{label}
|
||||||
{/* help can be a string or object to customize the label */}
|
{/* help can be a string or object to customize the label */}
|
||||||
{help && (
|
{help && (
|
||||||
<Info label={help.label || 'help'}>
|
<Info label={help.label}>
|
||||||
<Text>{help.text || help}</Text>
|
<Text>{help.text || help}</Text>
|
||||||
</Info>
|
</Info>
|
||||||
)}
|
)}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user