From cd1064d011a356954ac69c70715a53182c5b1e71 Mon Sep 17 00:00:00 2001 From: Adam Piontek Date: Fri, 5 Mar 2021 11:01:54 -0500 Subject: [PATCH] fixing little compile bugs --- lib/bones73k_web/live/user_management/form_component.ex | 2 +- .../live/user_management/form_component.html.leex | 2 +- lib/bones73k_web/live/user_management/index.html.leex | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) 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 -> %>
  • <%= page_num %>
  • - <%= true -> %> + <% true -> %>
  • <%= page_num %>