Skip to content

Commit

Permalink
breaking words
Browse files Browse the repository at this point in the history
  • Loading branch information
Nebyt committed Jul 25, 2024
1 parent f77e7f3 commit c2137de
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions src/components/tabs/subtabs/infoPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,59 +16,60 @@ const InfoPanel = ({getters}) => {
} = getters

const textColor = 'text-orange-700'
const spanProperties = 'w-full break-words ' + textColor

return (
<div className="block p-5 min-w-full rounded-lg border shadow-md bg-gray-900 border-gray-700">
<div className="grid justify-items-stretch grid-cols-1 lg:grid-cols-2 gap-2">
<div>
<span>Balance: </span>
<span className={textColor}>{balance.length > 0 ? balance : '-'}</span>
<span className={spanProperties}>{balance.length > 0 ? balance : '-'}</span>
</div>
<div>
<span>UTxOs: </span>
{utxos.length > 0 ? (
utxos.map((utxo, index) => (
<p className={textColor} key={index}>
<p className={spanProperties} key={index}>
{utxo}
</p>
))
) : (
<span className={textColor}>-</span>
<span className={spanProperties}>-</span>
)}
</div>
<div>
<span>Change address: </span>
<span className={'w-full break-words ' + textColor}>
<span className={spanProperties}>
{changeAddress.length > 0 ? changeAddress : '-'}
</span>
</div>
<div>
<span>Reward address: </span>
<span className={textColor}>{rewardAddress.length > 0 ? rewardAddress : '-'}</span>
<span className={spanProperties}>{rewardAddress.length > 0 ? rewardAddress : '-'}</span>
</div>
<div>
<span>Used address: </span>
<span className={textColor}>{usedAddress.length > 0 ? usedAddress : '-'}</span>
<span className={spanProperties}>{usedAddress.length > 0 ? usedAddress : '-'}</span>
</div>
<div>
<span>Unused address: </span>
<span className={textColor}>{unusedAddress.length > 0 ? unusedAddress : '-'}</span>
<span className={spanProperties}>{unusedAddress.length > 0 ? unusedAddress : '-'}</span>
</div>
<div>
<span>DRep ID Hex: </span>
<span className={textColor}>{dRepIdHex.length > 0 ? dRepIdHex : '-'}</span>
<span className={spanProperties}>{dRepIdHex.length > 0 ? dRepIdHex : '-'}</span>
</div>
<div>
<span>DRep ID Bech32: </span>
<span className={textColor}>{dRepIdBech32.length > 0 ? dRepIdBech32 : '-'}</span>
<span className={spanProperties}>{dRepIdBech32.length > 0 ? dRepIdBech32 : '-'}</span>
</div>
<div>
<span>Registered public key (first): </span>
<span className={textColor}>{regPubStakeKey.length > 0 ? regPubStakeKey : '-'}</span>
<span className={spanProperties}>{regPubStakeKey.length > 0 ? regPubStakeKey : '-'}</span>
</div>
<div>
<span>Unregistered public key (first): </span>
<span className={textColor}>{unregPubStakeKey.length > 0 ? unregPubStakeKey : '-'}</span>
<span className={spanProperties}>{unregPubStakeKey.length > 0 ? unregPubStakeKey : '-'}</span>
</div>
</div>
</div>
Expand Down

0 comments on commit c2137de

Please sign in to comment.