diff --git a/lib/bones73k_web/live/user_management/form_component.ex b/lib/bones73k_web/live/user_management/form_component.ex index 6de85aa..6da64e1 100644 --- a/lib/bones73k_web/live/user_management/form_component.ex +++ b/lib/bones73k_web/live/user_management/form_component.ex @@ -1,7 +1,7 @@ defmodule Bones73kWeb.UserManagement.FormComponent do use Bones73kWeb, :live_component - alias Bones73k.{Repo, Accounts} + alias Bones73k.Accounts alias Bones73k.Accounts.User alias Bones73kWeb.Roles diff --git a/lib/bones73k_web/live/user_management/form_component.html.leex b/lib/bones73k_web/live/user_management/form_component.html.leex index 3b03798..0dad565 100644 --- a/lib/bones73k_web/live/user_management/form_component.html.leex +++ b/lib/bones73k_web/live/user_management/form_component.html.leex @@ -30,7 +30,7 @@ <%= icon_div @socket, "bi-shield-shaded", [class: "icon"] %> - <%= select f, :role, Enum.map(User.roles(), fn {k, v} -> {String.capitalize(Atom.to_string(k)), k} end), class: "form-select" %> + <%= select f, :role, Enum.map(User.roles(), fn {k, _v} -> {String.capitalize(Atom.to_string(k)), k} end), class: "form-select" %> <%= role_description(input_value(f, :role)) %> diff --git a/lib/bones73k_web/live/user_management/index.html.leex b/lib/bones73k_web/live/user_management/index.html.leex index f42dcd5..bbb6991 100644 --- a/lib/bones73k_web/live/user_management/index.html.leex +++ b/lib/bones73k_web/live/user_management/index.html.leex @@ -166,11 +166,11 @@ … - <%= page_num == @page.page_number -> %> + <% page_num == @page.page_number -> %>