Sha256: f91c5c906fcbce56f82ecd4f0ab7e30ce5596d61a5b2be74885c12f174d44fc3

Contents?: true

Size: 203 Bytes

Versions: 10

Compression:

Stored size: 203 Bytes

Contents

# frozen_string_literal: true

class Avo::ProfilePhotoComponent < Avo::BaseComponent
  prop :profile_photo

  def render?
    @profile_photo.present? && @profile_photo.visible_in_current_view?
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
avo-3.15.1 app/components/avo/profile_photo_component.rb
avo-3.15.0 app/components/avo/profile_photo_component.rb
avo-3.14.5 app/components/avo/profile_photo_component.rb
avo-3.14.4 app/components/avo/profile_photo_component.rb
avo-3.14.3 app/components/avo/profile_photo_component.rb
avo-3.14.2 app/components/avo/profile_photo_component.rb
avo-3.14.1 app/components/avo/profile_photo_component.rb
avo-3.14.0 app/components/avo/profile_photo_component.rb
avo-3.13.7 app/components/avo/profile_photo_component.rb
avo-3.13.6 app/components/avo/profile_photo_component.rb