add docs, delete unused functions
This commit is contained in:
@@ -22,15 +22,4 @@ defmodule PokemonCoutureWeb.ClothesTrackerLive do
|
||||
|> assign(:user, user)
|
||||
{:ok, socket}
|
||||
end
|
||||
|
||||
def handle_event("on", _value, socket) do
|
||||
socket =
|
||||
socket
|
||||
|> assign(:light_bulb_status, "on")
|
||||
|> assign(:on_button_status, "disabled")
|
||||
|> assign(:off_button_status, "enabled")
|
||||
|
||||
{:noreply, socket}
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -2,9 +2,6 @@ defmodule PokemonCoutureWeb.Components.ClothesComponent do
|
||||
use Phoenix.LiveComponent
|
||||
|
||||
alias PokemonCouture.Shops
|
||||
def mount(socket) do
|
||||
{:ok, socket}
|
||||
end
|
||||
|
||||
def render(assigns) do
|
||||
~L"""
|
||||
|
||||
@@ -10,6 +10,9 @@
|
||||
<li>
|
||||
<a href="http://localhost:4000/clothes">Clothes page</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="http://localhost:4000/tracker">Live clothes tracker</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://github.com/SleepyLili/pokemon-couture">Source</a>
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user