app/components/lookbook/nav/entity/component.rb in lookbook-1.5.5 vs app/components/lookbook/nav/entity/component.rb in lookbook-2.0.0.beta.0

- old
+ new

@@ -1,11 +1,11 @@ module Lookbook class Nav::Entity::Component < Nav::Item::Component ICONS = { page: :file, preview: :layers, - example: :eye, + scenario: :eye, group: :eye }.freeze def nav_icon ICONS[collapsed? ? :preview : node.type] || :file @@ -22,10 +22,10 @@ def children collapsed? ? [] : super end def type - collapsed? ? :example : node.type + collapsed? ? :scenario : node.type end def collapsed? node.type == :preview && node.children.one? end