rename ammo group files to pack

This commit is contained in:
2023-03-29 22:58:07 -04:00
parent 6d26103784
commit 0544b58ab6
39 changed files with 743 additions and 743 deletions

View File

@ -94,7 +94,7 @@ defmodule CanneryWeb.CoreComponents do
attr :container, Container, default: nil
slot(:inner_block)
def ammo_group_card(assigns)
def pack_card(assigns)
@spec display_currency(float()) :: String.t()
defp display_currency(float), do: :erlang.float_to_binary(float, decimals: 2)

View File

@ -215,7 +215,7 @@
</.live_component>
<% else %>
<div class="flex flex-wrap justify-center items-stretch">
<.ammo_group_card
<.pack_card
:for={%{id: pack_id, container_id: container_id} = pack <- @packs}
pack={pack}
original_count={@original_counts && Map.fetch!(@original_counts, pack_id)}

View File

@ -139,7 +139,7 @@
</.live_component>
<% else %>
<div class="flex flex-wrap justify-center items-stretch">
<.ammo_group_card
<.pack_card
:for={%{id: pack_id} = pack <- @packs}
pack={pack}
original_count={Map.fetch!(@original_counts, pack_id)}

View File

@ -18,7 +18,7 @@
</.link>
<div class="w-full flex flex-row flex-wrap justify-center items-stretch">
<.ammo_group_card
<.pack_card
:for={%{id: pack_id} = pack <- @packs}
pack={pack}
original_count={Map.fetch!(@original_counts, pack_id)}
@ -44,7 +44,7 @@
>
<%= dgettext("actions", "Record shots") %>
</.link>
</.ammo_group_card>
</.pack_card>
</div>
<% end %>