app/views/lookbook/error.html.erb in lookbook-1.0.8 vs app/views/lookbook/error.html.erb in lookbook-1.1.0
- old
+ new
@@ -22,10 +22,10 @@
</div>
<% end %>
<% if error.source_code %>
<div class="mx-8 border border-red-200 max-w-screen-lg">
- <%= render_component :code,
+ <%= lookbook_render :code,
language: error.file_lang,
highlight_lines: [error.source_code[:highlighted_line]],
start_line: error.source_code[:start_line],
line_numbers: true do %><%= h(error.source_code[:code]) %><% end %>
</div>
\ No newline at end of file