Few small changes
This commit is contained in:
parent
8577c9dddb
commit
c67fbf6733
3
friends/lib/friends_web/live/friend_live.ex
Normal file
3
friends/lib/friends_web/live/friend_live.ex
Normal file
@ -0,0 +1,3 @@
|
||||
defmodule FriendsWeb.FriendLive do
|
||||
use FriendsWeb, :live_view
|
||||
end
|
||||
@ -1,4 +0,0 @@
|
||||
defmodule FriendsWeb.FriendsLive do
|
||||
use FriendsWeb, :live_view
|
||||
|
||||
end
|
||||
11
friends/lib/friends_web/live/show.ex
Normal file
11
friends/lib/friends_web/live/show.ex
Normal file
@ -0,0 +1,11 @@
|
||||
defmodule FriendsWeb.FriendLive.Show do
|
||||
use FriendsWeb, :live_view
|
||||
|
||||
import FriendsWeb.LiveView
|
||||
|
||||
def mount(_params, %{"user_token" => user_token}, socket) do
|
||||
{:ok,
|
||||
socket
|
||||
|> assign_current_user(user_token)}
|
||||
end
|
||||
end
|
||||
1
friends/lib/friends_web/live/show.html.heex
Normal file
1
friends/lib/friends_web/live/show.html.heex
Normal file
@ -0,0 +1 @@
|
||||
<h1><%=@friend.name %></h1>
|
||||
Loading…
Reference in New Issue
Block a user