Sha256: ee4afd9f3d8b59d4c3a22561b28c0a3a5632ee994d93d63323c448a2776daf8e

Contents?: true

Size: 503 Bytes

Versions: 6

Compression:

Stored size: 503 Bytes

Contents

# I didn't end up changing anything here. I just really don't like its design.
# Flagging because we should make it suck less. - @jwietelmann
Rev.registerComponent 'IconBar',
  render: ->
    classes =
      "icon-bar": true
      "RevIconBar": true

    classes["vertical"] = true if @props.vertical

    for size in ["one", "two", "three", "four", "five", "six"]
      if @props[size]
        classes["#{size}-up"] = true
        break;

    <div className={@classAdd classes}>{@props.children}</div>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
revelry_core-0.1.12.6 app/assets/javascripts/revelry/ui/navigation/IconBar.js.cjsx
revelry_core-0.1.12.5 app/assets/javascripts/revelry/ui/navigation/IconBar.js.cjsx
revelry_core-0.1.12.4 app/assets/javascripts/revelry/ui/navigation/IconBar.js.cjsx
revelry_core-0.1.12.3 app/assets/javascripts/revelry/ui/navigation/IconBar.js.cjsx
revelry_core-0.1.12.2 app/assets/javascripts/revelry/ui/navigation/IconBar.js.cjsx
revelry_core-0.1.12.0 app/assets/javascripts/revelry/ui/navigation/IconBar.js.cjsx