Skip to content

Commit

Permalink
fix: CI
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioRodrigues10 committed Dec 25, 2024
1 parent 96c6c34 commit ef09bdc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions lib/safira_web/components/dark_mode.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
defmodule DarkMode do
@moduledoc false
use Phoenix.Component

def button(assigns) do
Expand Down
6 changes: 3 additions & 3 deletions lib/safira_web/live/app/profile_live/index.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/safira_web/live/app/profile_live/index.html.heex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<.page id="profile" title="Profile">
<.page title="Profile">
<:actions>
<.button>
<.icon name="hero-edit" class="w-5 h-5" />
Expand Down

0 comments on commit ef09bdc

Please sign in to comment.