app/components/lookbook/button/component.html.erb in lookbook-1.0.8 vs app/components/lookbook/button/component.html.erb in lookbook-1.1.0
- old
+ new
@@ -8,18 +8,18 @@
}
],
disabled: @disabled,
"@keydown.esc.stop": "hideDropdown" do %>
<span x-ref="icon">
- <%= icon || render_component(:icon, name: @icon, size: icon_size, ":class": "{'animate-spin': _spinning}") %>
+ <%= icon || lookbook_render(:icon, name: @icon, size: icon_size, ":class": "{'animate-spin': _spinning}") %>
</span>
<% if @tooltip %>
<label class="hidden" x-ref="tooltip"><%= @tooltip %></label>
<% end %>
<% if content %>
<div x-ref="content"><%== content %></div>
<% end %>
- <% if dropdown %>
+ <% if dropdown? %>
<div class="hidden" x-ref="dropdown">
<div class="bg-white divide-y divide-lookbook-divider text-left">
<%== dropdown %>
</div>
</div>
\ No newline at end of file