remove redundant "view basket" link from cart drawer
The drawer now has full quantity controls, remove, subtotal, and checkout — the link to the cart page added friction without value. Cart page remains accessible via the basket icon in nav. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -147,28 +147,6 @@ defmodule SimpleshopThemeWeb.ShopComponents.Cart do
|
||||
</button>
|
||||
</form>
|
||||
<% end %>
|
||||
<%= if @mode == :preview do %>
|
||||
<a
|
||||
href="#"
|
||||
phx-click={
|
||||
close_cart_drawer_js()
|
||||
|> Phoenix.LiveView.JS.push("change_preview_page", value: %{page: "cart"})
|
||||
}
|
||||
class="cart-drawer-link"
|
||||
style="display: block; text-align: center; font-family: var(--t-font-body); font-size: var(--t-text-small); color: var(--t-text-secondary); text-decoration: underline; cursor: pointer;"
|
||||
>
|
||||
View basket
|
||||
</a>
|
||||
<% else %>
|
||||
<a
|
||||
href="/cart"
|
||||
phx-click={close_cart_drawer_js()}
|
||||
class="cart-drawer-link"
|
||||
style="display: block; text-align: center; font-family: var(--t-font-body); font-size: var(--t-text-small); color: var(--t-text-secondary); text-decoration: underline; cursor: pointer;"
|
||||
>
|
||||
View basket
|
||||
</a>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user