Skip to content

Commit

Permalink
fix: setting values in frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
uri-99 committed Dec 21, 2024
1 parent 5e451b1 commit cb2aa18
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions explorer/lib/explorer_web/live/pages/home/index.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,29 @@
>
<%= if @operators_registered != :empty do %>
<%= @operators_registered %>
<% else %>
0
<% end %>
</.card_link>
<.card_link
icon="hero-arrow-right-solid"
navigate={~p"/restake"}
title="Total Restaked"
subtitle={"(#{@restaked_amount_eth |> Helpers.format_number()} ETH)"}>
<%= if @restaked_amount_eth != :nil do %>
<%= @restaked_amount_usd |> Helpers.format_number() %> USD
<% else %>
0
<% end %>
icon="hero-arrow-right-solid"
navigate={~p"/restake"}
title="Total Restaked"
subtitle={
if @restaked_amount_eth |> Helpers.format_number() != nil do
"(#{@restaked_amount_eth |> Helpers.format_number()} ETH)"
end
}>
<%= if @restaked_amount_usd |> Helpers.format_number() != nil do %>
<%= @restaked_amount_usd |> Helpers.format_number() %> USD
<% end %>
</.card_link>
<.card title="verified batches">
<%= if @verified_batches != :empty do %>
<%= @verified_batches |> Helpers.format_number() %>
<% else %>
0
<% end %>
</.card>
<.card title="Verified Proofs" class="-mt-0.5 md:mt-0">
<%= if @verified_proofs != :empty do %>
<%= @verified_proofs |> Helpers.format_number() %>
<% else %>
0
<% end %>
</.card>
<.live_component module={ContractsComponent} id="contracts_card" class="sm:col-span-2" />
Expand Down

0 comments on commit cb2aa18

Please sign in to comment.