app/components/lookbook/page_tabs/component.html.erb in lookbook-1.5.5 vs app/components/lookbook/page_tabs/component.html.erb in lookbook-2.0.0.beta.0
- old
+ new
@@ -1,15 +1,15 @@
<%= render_component_tag "x-data": "{ activeTab: null }" do %>
<div class="flex w-full border-b border-lookbook-divider mb-6">
<%= lookbook_render :tabs, theme: :page do |t| %>
<% @tabs.each do |props| %>
- <%= t.with_tab **props %>
+ <%= t.tab **props %>
<% end %>
<% end %>
</div>
<%= lookbook_render :tab_panels do |t| %>
<% @tabs.each do |props| %>
- <% t.with_panel name: props[:name] do %>
+ <% t.panel name: props[:name] do %>
<%= lookbook_render :prose, markdown: props[:markdown], class: "max-w-none flex-none" do %>
<%== props[:tab_content] %>
<% end %>
<% end %>
<% end %>
\ No newline at end of file