Skip to content

Commit

Permalink
Add a title to the orders/cart component
Browse files Browse the repository at this point in the history
  • Loading branch information
elia committed Oct 31, 2023
1 parent 8e9813a commit f3edb53
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,16 @@
data-<%= stimulus_id %>-initial-text-value="<%= t('.initial') %>"
data-<%= stimulus_id %>-empty-text-value="<%= t('.empty') %>"
>
<%= render component('ui/panel').new do |panel| %>
<%= render component('ui/panel').new(title: t('.title')) do |panel| %>
<div class="border-gray-100 border-t -mx-6"></div>
<div>
<div class="peer">
<%= render component("ui/forms/search_field").new(
"data-action": "#{stimulus_id}#search focus->#{stimulus_id}#showResults #{stimulus_id}#showResults",
placeholder: t(".search_placeholder"),
"data-#{stimulus_id}-target": "searchField",
) %>
<%= render component("ui/forms/search_field").new(
"data-action":
"#{stimulus_id}#search focus->#{stimulus_id}#showResults #{stimulus_id}#showResults",
placeholder: t(".search_placeholder"),
"data-#{stimulus_id}-target": "searchField"
) %>
</div>

<%# results popover %>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Add your component translations here.
# Use the translation in the example in your template with `t(".hello")`.
en:
title: "Cart"
search_placeholder: "Find a variant by name or SKU"
loading: "Loading..."
initial: "Type to search"
Expand Down

0 comments on commit f3edb53

Please sign in to comment.