chiya/lib/chiya_web/live/user_profile_live.ex

21 lines
388 B
Elixir
Raw Normal View History

2023-03-07 21:24:24 +01:00
defmodule ChiyaWeb.UserProfileLive do
use ChiyaWeb, :live_view
def render(assigns) do
~H"""
<.header>
User Profile
<:actions>
<.link href={~p"/user/settings"}>
<.button>Edit User</.button>
</.link>
</:actions>
</.header>
<.list>
<:item title="Email"><%= @current_user.email %></:item>
</.list>
"""
end
2023-03-09 21:44:29 +01:00
end