app/components/avo/fields/common/boolean_check_component.rb in avo-3.0.1.beta8 vs app/components/avo/fields/common/boolean_check_component.rb in avo-3.0.1.beta9

- old
+ new

@@ -1,7 +1,8 @@ # frozen_string_literal: true class Avo::Fields::Common::BooleanCheckComponent < ViewComponent::Base def initialize(checked: false) - @checked = checked + @icon = checked ? "heroicons/outline/check-circle" : "heroicons/outline/x-circle" + @classes = "h-6 #{checked ? "text-green-600" : "text-red-500"}" end end