Skip to content

Commit

Permalink
Move usd value to separate row
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitosing committed Jul 25, 2022
1 parent 489913b commit 5d1da25
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,14 @@
<% end %>
</div>
<div class="row dropdown-row wh-sp">
<p class="mb-0 ml-5px <%= if System.get_env("DISPLAY_TOKEN_ICONS") === "true", do: "ml-20px" %>">
<%= if token_balance.token.usd_value do %>
<p class="mb-0 text-right text-muted usd-rate">
<span data-selector="token-price" data-token-usd-value="<%= token_balance.token.usd_value %>"></span>
</p>
<% end %>
</div>
<div class="row dropdown-row wh-sp">
<p class="mb-0 ml-5px dropdown-amount <%= if System.get_env("DISPLAY_TOKEN_ICONS") === "true", do: "ml-20px" %>">
<%= if token_balance.token_type == "ERC-721" && !is_nil(token_balance.token_id) do %>
1
<% else %>
Expand All @@ -51,11 +58,6 @@
<%= " TokenID " <> to_string(token_balance.token_id) %>
<% end %>
</p>
<%= if token_balance.token.usd_value do %>
<p class="mb-0 col-md-6 text-right text-muted usd-rate">
<span data-selector="token-price" data-token-usd-value="<%= token_balance.token.usd_value %>"></span>
</p>
<% end %>
</div>
<% end %>
</div>
Expand Down

0 comments on commit 5d1da25

Please sign in to comment.