Skip to content

Commit

Permalink
Merge pull request #324 from greymass/dev
Browse files Browse the repository at this point in the history
Only display fund if is current user
  • Loading branch information
aaroncox authored Dec 19, 2024
2 parents 15e849d + 0b3b06f commit 6f25e1d
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/routes/[network]/(explorer)/account/[name]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,18 @@
</Stack>
</div>

<div class="col-span-2 col-start-2 row-start-1 text-right @xs:col-span-1 @xs:col-start-3">
<a
class="inline-block h-12 content-center text-skyBlue-500 hover:text-skyBlue-400"
href={`/${data.network}/fund`}
{#if isCurrentUser}
<div
class="col-span-2 col-start-2 row-start-1 text-right @xs:col-span-1 @xs:col-start-3"
>
Add Funds
</a>
</div>
<a
class="inline-block h-12 content-center text-skyBlue-500 hover:text-skyBlue-400"
href={`/${data.network}/fund`}
>
Add Funds
</a>
</div>
{/if}
</div>

<Breakdown {isCurrentUser}>
Expand Down

0 comments on commit 6f25e1d

Please sign in to comment.