diff --git a/lib/wish_web/live/home_live/details.html.heex b/lib/wish_web/live/home_live/details.html.heex index b75574e..3d8546e 100644 --- a/lib/wish_web/live/home_live/details.html.heex +++ b/lib/wish_web/live/home_live/details.html.heex @@ -1,4 +1,4 @@ -<.link navigate={~p"/"}> +<.link href={~p"/"}> <.icon name="hero-arrow-left" /> Back to list diff --git a/lib/wish_web/live/home_live/index.ex b/lib/wish_web/live/home_live/index.ex index 4097f2f..fbb8d2b 100644 --- a/lib/wish_web/live/home_live/index.ex +++ b/lib/wish_web/live/home_live/index.ex @@ -67,7 +67,7 @@ defmodule WishWeb.HomeLive.Index do hidden > <.link href={@item.url} class="block p-2 w-full hover:bg-purple-300 select-none" target="_blank"> - Go to URL + Go to seller
JS.hide(to: "#dropdown-#{@item.id}") } > - Mark received + Mark as purchased
""" diff --git a/lib/wish_web/live/home_live/index.html.heex b/lib/wish_web/live/home_live/index.html.heex index 2620788..34e06e1 100644 --- a/lib/wish_web/live/home_live/index.html.heex +++ b/lib/wish_web/live/home_live/index.html.heex @@ -67,9 +67,16 @@ <% end %> -
- <%= item.description %> -
+ <%= if item.description do %> +
+
+ Description: +
+
+ <%= item.description %> +
+
+ <% end %> <% else %> @@ -99,9 +106,16 @@ /> <.dropdown item={item} /> -
- <%= item.description %> -
+ <%= if item.description do %> +
+
+ Description: +
+
+ <%= item.description %> +
+
+ <% end %>
Priority: