Skip to content

Commit

Permalink
Merge pull request #3 from ranchimall/pull-master
Browse files Browse the repository at this point in the history
Bug fixes
  • Loading branch information
vivekteega authored Apr 8, 2023
2 parents 70aa2d4 + 8973f7c commit a20d2e9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
11 changes: 11 additions & 0 deletions floscout.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 10 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap" rel="stylesheet">
<script src="https://unpkg.com/[email protected]/es.js"></script>
<script src="components.min.js"></script>
<link rel="shortcut icon" href="floscout.svg" type="image/x-icon">
</head>

<body data-theme="light" class="hidden">
Expand Down Expand Up @@ -673,15 +674,19 @@ <h4>${formatAmount(balance, token.toLowerCase() === 'rupee' ? 'inr' : 'usd')}</h
if (type == 'smartContractPays' || type == ' smartContractPays') {
name = ''
}

if(type.trim() === 'nftIncorporation')
type = 'NFT Incorporation'
else if(type.trim() === 'nft transfer')
type = 'NFT Transfer'

return html`
<div id="transaction_page" class="page">
<div class='head'>
<h5 class="label">${type}</h5>
<h2 class="token uppercase">${name}</h2>
<h2 class="token uppercase">
<a href=${`#/token/${name}`} style="text-decoration:none;">${name}</a>
</h2>
<h5 class="label">Transaction ID</h5>
<sm-copy value=${hash} clip-text></sm-copy>
</div>
Expand Down Expand Up @@ -745,10 +750,10 @@ <h1>Not found!</h1>
return html`
<div id="token_page" class="page">
<div class="card">
<h2>${token}</h2>
<h2 class="uppercase">${token}</h2>
<h5 class="label">Supply</h5>
<h4>${formatAmount(supply, token.toLowerCase() === 'rupee' ? 'inr' : 'usd')}</h4>
<h5 class="label">Address</h5>
<h5 class="label">Incorporation address</h5>
<h4 class="wrap-around">${incAddress}</h4>
</div>
<sm-chips data-target="token_views" onchange="changeView(event)">
Expand Down Expand Up @@ -872,8 +877,10 @@ <h5 class="label">Transaction ID</h5>
<div id=${hash} class="transaction token-transfer">
<svg class="icon" viewBox="0 0 64 64"> <title>transfer</title> <polyline points="17.04 35.97 14.57 33.5 40.15 7.9 32.75 0.5 55.52 0.5 55.52 23.28 48.12 15.87 23.86 40.14 15.88 48.13 8.48 40.72 8.48 63.5 31.25 63.5 23.85 56.1 49.43 30.5 46.96 28.03"/> </svg>
<div class="contract-type">
<h5 class="label">${title}</h5>
<a href=${`#/token/${token}`} class="">${token}</a>
</div>
<div class="contract-info">
<div class="flex flex-direction-column">
Expand Down

0 comments on commit a20d2e9

Please sign in to comment.