diff --git a/lib/safira_web/components/dark_mode.ex b/lib/safira_web/components/dark_mode.ex index fb1a3af4..12dfa096 100644 --- a/lib/safira_web/components/dark_mode.ex +++ b/lib/safira_web/components/dark_mode.ex @@ -1,4 +1,5 @@ defmodule DarkMode do + @moduledoc false use Phoenix.Component def button(assigns) do diff --git a/lib/safira_web/live/app/profile_live/index.ex b/lib/safira_web/live/app/profile_live/index.ex index a1817f89..09f3f133 100644 --- a/lib/safira_web/live/app/profile_live/index.ex +++ b/lib/safira_web/live/app/profile_live/index.ex @@ -12,15 +12,15 @@ defmodule SafiraWeb.App.ProfileLive.Index do socket |> assign(:user, socket.assigns.current_user) |> assign(:current_page, :profile) - |> apply_action(socket.assigns.live_action, _params)} + |> apply_action(socket.assigns.live_action)} end - defp apply_action(socket, :index, _params) do + defp apply_action(socket, :index) do socket |> assign(:page_title, "Profile") end - defp apply_action(socket, :edit, _params) do + defp apply_action(socket, :edit) do socket |> assign(:page_title, "Edit Profile") end diff --git a/lib/safira_web/live/app/profile_live/index.html.heex b/lib/safira_web/live/app/profile_live/index.html.heex index 4fbfd649..b8e21a89 100644 --- a/lib/safira_web/live/app/profile_live/index.html.heex +++ b/lib/safira_web/live/app/profile_live/index.html.heex @@ -1,4 +1,4 @@ -<.page id="profile" title="Profile"> +<.page title="Profile"> <:actions> <.button> <.icon name="hero-edit" class="w-5 h-5" />