remove redundant info help text from wallets

This commit is contained in:
k00b 2024-08-18 15:20:31 -05:00
parent 506bb364d1
commit 3608d133d7
1 changed files with 2 additions and 2 deletions

View File

@ -102,7 +102,7 @@ export default function WalletSettings () {
function WalletFields ({ wallet: { config, fields, isConfigured } }) {
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 = {
...props,
name,
@ -115,7 +115,7 @@ function WalletFields ({ wallet: { config, fields, isConfigured } }) {
{label}
{/* help can be a string or object to customize the label */}
{help && (
<Info label={help.label || 'help'}>
<Info label={help.label}>
<Text>{help.text || help}</Text>
</Info>
)}