app/components/lookbook/header/component.html.erb in lookbook-1.0.0.beta.2 vs app/components/lookbook/header/component.html.erb in lookbook-1.0.0.beta.3
- old
+ new
@@ -22,41 +22,36 @@
<a href="#"
class="text-xs flex items-center hover:underline"
x-data="clipboardComponent"
@click.prevent.stop="copyToClipboard('#debug-data')">
<span x-show="copied" x-cloak>
- <%= render_component :icon,
- name: :check,
- size: 2.5,
- class: "text-green-600" %>
+ <%= icon :check, size: 2.5, class: "text-green-600" %>
</span>
<span x-show="!copied">
- <%= render_component :icon,
- name: :clipboard,
- size: 2.5 %>
+ <%= icon :clipboard, size: 2.5 %>
</span>
<span class="ml-2">Copy debug data</span>
</a>
</li>
<li>
<a href="#"
class="text-xs flex items-center hover:underline"
@click.stop="localStorage.clear(); window.location.reload();">
- <%= render_component :icon, name: :refresh_cw, size: 2.5 %>
+ <%= icon :refresh_cw, size: 2.5 %>
<span class="ml-2">Reset local storage</span>
</a>
</li>
</ul>
</div>
<div class="flex items-center text-xs px-3 py-2 bg-zinc-50">
<span class="opacity-70 mr-1">Lookbook</span>
<span class="mr-6">v<%= Lookbook::VERSION %></span>
<div class="flex items-center space-x-2">
<!-- a href="https://github.com/allmarkedup/lookbook" target="_blank" class="ml-auto opacity-70" title="Documentation">
- <%= render_component :icon, name: :book, size: 3 %>
+ <%= icon :book, size: 3 %>
</a -->
<a href="https://github.com/allmarkedup/lookbook" target="_blank" class="ml-auto opacity-70" title="Github">
- <%= render_component :icon, name: :github, size: 3 %>
+ <%= icon :github, size: 3 %>
</a>
</div>
</div>
<% end %>
<% end %>
\ No newline at end of file