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
|