fixup! use table component for move ammo group component
This commit is contained in:
		| @@ -67,12 +67,7 @@ defmodule CanneryWeb.Components.MoveAmmoGroupComponent do | ||||
|       %{label: gettext("Container"), key: "name"}, | ||||
|       %{label: gettext("Type"), key: "type"}, | ||||
|       %{label: gettext("Location"), key: "location"}, | ||||
|       %{ | ||||
|         label: nil, | ||||
|         key: "actions", | ||||
|         sortable: false, | ||||
|         class: "px-4 py-2 space-x-4 flex justify-center items-center" | ||||
|       } | ||||
|       %{label: nil, key: "actions", sortable: false} | ||||
|     ] | ||||
|  | ||||
|     rows = containers |> get_rows_for_containers(assigns, columns) | ||||
| @@ -119,6 +114,7 @@ defmodule CanneryWeb.Components.MoveAmmoGroupComponent do | ||||
|           case key do | ||||
|             "actions" -> | ||||
|               ~H""" | ||||
|               <div class="px-4 py-2 space-x-4 flex justify-center items-center"> | ||||
|                 <button | ||||
|                   type="button" | ||||
|                   class="btn btn-primary" | ||||
| @@ -128,6 +124,7 @@ defmodule CanneryWeb.Components.MoveAmmoGroupComponent do | ||||
|                 > | ||||
|                   <%= dgettext("actions", "Select") %> | ||||
|                 </button> | ||||
|               </div> | ||||
|               """ | ||||
|  | ||||
|             key -> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user