Module: Spree::Admin::OnboardingHelper

Defined in:
app/helpers/spree/admin/onboarding_helper.rb

Instance Method Summary collapse

Instance Method Details

#onboarding_check_circle(condition, pending: false) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
# File 'app/helpers/spree/admin/onboarding_helper.rb', line 4

def onboarding_check_circle(condition, pending: false)
  if pending
    return icon('exclamation-circle', height: height,
                                      class: 'rounded-full inline-flex items-center bg-warning text-zinc-950 p-1').html_safe
  end

  if condition == true
    icon('check', class: 'rounded-full inline-flex items-center bg-green-200 text-green-600 border-green-200 p-1')
  else
    icon('check', class: 'rounded-full inline-flex items-center border-dashed text-gray-300 p-1')
  end.html_safe
end