Skip to content

Commit ad2140a

Browse files
committed
Prefer preview_class_name
This seems to be the proper way to get the class name of a preview
1 parent f105434 commit ad2140a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demo/app/views/docs/components/show.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
<% if @introduction_preview %>
3636
<section>
37-
<lookbook-embed preview="<%= @introduction_preview.preview_class %>" scenario="example"></lookbook-embed>
37+
<lookbook-embed preview="<%= @introduction_preview.preview_class_name %>" scenario="example"></lookbook-embed>
3838
</section>
3939
<% end %>
4040

0 commit comments

Comments
 (0)