From ef09bdcecc0ea8aa0668dd87f104ea3e5fa7d411 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rio=20Rodrigues?= Date: Wed, 25 Dec 2024 17:04:08 +0000 Subject: [PATCH] fix: CI --- lib/safira_web/components/dark_mode.ex | 1 + lib/safira_web/live/app/profile_live/index.ex | 6 +++--- lib/safira_web/live/app/profile_live/index.html.heex | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) 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" />