Skip to content

Commit

Permalink
fix tokenPoster image displaying issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mymiracle0118 committed Jul 18, 2024
1 parent e1a86ac commit 19bc444
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@metastellar/ui-library",
"version": "0.0.18",
"version": "0.0.19",
"scripts": {
"dev": "vite dev --host",
"build": "vite build && npm run package",
Expand Down
9 changes: 7 additions & 2 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ export const nftInfo: AssetAccount = {
// issuer: "GDSZ24D4II53QDUQDWJMCOYDE7YCLWH3XUAE662GS46RCZF3E7KTRR5E"
// }

// export const tokenInfo: AssetAccount = {
// code: "BTCLN",
// issuer: "GDPKQ2TSNJOFSEE7XSUXPWRP27H6GFGLWD7JCHNEYYWQVGFA543EVBVT"
// }

export const tokenInfo: AssetAccount = {
code: "BTCLN",
issuer: "GDPKQ2TSNJOFSEE7XSUXPWRP27H6GFGLWD7JCHNEYYWQVGFA543EVBVT"
code: "BLND",
issuer: "GATALTGTWIOT6BUDBCZM3Q4OQ4BO2COLOAZ7IYSKPLC2PMSOPPGF5V56"
}
6 changes: 3 additions & 3 deletions src/lib/tokenPoster/tokenPoster.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,16 @@
<img class={imgCls} src={assetMetadata?.image} alt="product 1" width={100} />
{:else}
<div class={imgCls}>
<svg height="48" class="text-gray-200" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" fill="currentColor" viewBox="0 0 640 512">
<svg height="40" class="text-gray-200" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" fill="currentColor" viewBox="0 0 640 512">
<path d="M480 80C480 35.82 515.8 0 560 0C604.2 0 640 35.82 640 80C640 124.2 604.2 160 560 160C515.8 160 480 124.2 480 80zM0 456.1C0 445.6 2.964 435.3 8.551 426.4L225.3 81.01C231.9 70.42 243.5 64 256 64C268.5 64 280.1 70.42 286.8 81.01L412.7 281.7L460.9 202.7C464.1 196.1 472.2 192 480 192C487.8 192 495 196.1 499.1 202.7L631.1 419.1C636.9 428.6 640 439.7 640 450.9C640 484.6 612.6 512 578.9 512H55.91C25.03 512 .0006 486.1 .0006 456.1L0 456.1z" />
</svg>
</div>
{/if}

<div class="flex justify-between w-full mt-2">
<div class="flex justify-between w-full mt-2 ml-4">
{#if assetMetadata?.code}
<p>{assetMetadata?.code}</p>
{:else if assetMetadata?.code}
{:else if assetInfo?.asset_code}
<p>{assetInfo?.asset_code}</p>
{:else}
<p>{""}</p>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
<div class="w-1/2">
<TokenPoster
isMouseTrackRecord={false}
baseURL = {mainnetBaseURL}
baseURL = {testnetBaseURL}
dataURL="http://localhost/api"
intervalData={intervalData}
hoverTransform
Expand Down

0 comments on commit 19bc444

Please sign in to comment.