Skip to content

Commit

Permalink
[DDW-587] Full fingerprint
Browse files Browse the repository at this point in the history
  • Loading branch information
thedanheller committed Jun 14, 2021
1 parent 4f58ea1 commit b16f0eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/renderer/app/components/assets/Asset.js
Expand Up @@ -78,6 +78,7 @@ type Props = {
onClickSettings?: Function,
assetSettingsDialogWasOpened?: ?boolean,
anyAssetWasHovered?: ?boolean,
fullFingerprint?: ?boolean,
className?: string,
// In case it's not possible to calculate the container width
// this props defines after how many characters the `metadata.name` text will cut off
Expand Down Expand Up @@ -166,7 +167,7 @@ export default class Asset extends Component<Props, State> {
}

renderPillContent() {
const { asset, metadataNameChars, small } = this.props;
const { asset, metadataNameChars, small, fullFingerprint } = this.props;
const { fingerprint, metadata } = asset;
const { name } = metadata || {};
const contentStyles = classnames([
Expand All @@ -176,7 +177,7 @@ export default class Asset extends Component<Props, State> {
return (
<div className={contentStyles}>
<div className={styles.fingerprint}>
{ellipsis(fingerprint || '', 9, 4)}
{fullFingerprint ? fingerprint : ellipsis(fingerprint || '', 9, 4)}
</div>
{name && (
<div className={styles.metadataName}>
Expand Down
Expand Up @@ -89,6 +89,7 @@ export default class WalletSummaryAsset extends Component<Props, State> {
assetSettingsDialogWasOpened={assetSettingsDialogWasOpened}
anyAssetWasHovered={anyAssetWasHovered}
hidePopOver
fullFingerprint
/>
<AssetAmount
amount={asset.quantity}
Expand Down

0 comments on commit b16f0eb

Please sign in to comment.