Sha256: b75982da75e530070f5826678dec25b591db52e0f2d3f0f8e6c3d9f8d821ad8e

Contents?: true

Size: 235 Bytes

Versions: 13

Compression:

Stored size: 235 Bytes

Contents

# frozen_string_literal: true
module Tybo
  module FlashHelper
    def classes_for_flash(key)
      if %w[error alert].include?(key)
        'bg-red-100 text-red-700'
      else
        'bg-tybo text-white'
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
tybo-0.0.40 app/helpers/tybo/flash_helper.rb
tybo-0.0.39 app/helpers/tybo/flash_helper.rb
tybo-0.0.38 app/helpers/tybo/flash_helper.rb
tybo-0.0.37 app/helpers/tybo/flash_helper.rb
tybo-0.0.36 app/helpers/tybo/flash_helper.rb
tybo-0.0.35 app/helpers/tybo/flash_helper.rb
tybo-0.0.34 app/helpers/tybo/flash_helper.rb
tybo-0.0.32 app/helpers/tybo/flash_helper.rb
tybo-0.0.31 app/helpers/tybo/flash_helper.rb
tybo-0.0.30 app/helpers/tybo/flash_helper.rb
tybo-0.0.29 app/helpers/tybo/flash_helper.rb
tybo-0.0.28 app/helpers/tybo/flash_helper.rb
tybo-0.0.27 app/helpers/tybo/flash_helper.rb