Sha256: 5ecf0fa3ea10e3c7add21317d6c3cd7ed727d7d59f002ee8da372e1417eedc04

Contents?: true

Size: 423 Bytes

Versions: 23

Compression:

Stored size: 423 Bytes

Contents

module Coco
  module App
    module Elements
      module MenuItems
        class UserProfile < Coco::Component
          renders_one :avatar, ->(**kwargs) do
            Coco::Avatar.new(name: name, **kwargs, size: :lg)
          end

          attr_reader :name, :email

          def initialize(name:, email:, **)
            @name = name
            @email = email
          end
        end
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
coveragebook_components-0.12.2 app/components/coco/app/elements/menu_items/user_profile/user_profile.rb
coveragebook_components-0.12.1 app/components/coco/app/elements/menu_items/user_profile/user_profile.rb
coveragebook_components-0.12.0 app/components/coco/app/elements/menu_items/user_profile/user_profile.rb
coveragebook_components-0.11.0 app/components/coco/app/elements/menu_items/user_profile/user_profile.rb
coveragebook_components-0.10.1.beta.2 app/components/coco/app/elements/menu_items/user_profile/user_profile.rb
coveragebook_components-0.10.1.beta.1 app/components/coco/app/elements/menu_items/user_profile/user_profile.rb
coveragebook_components-0.10.1.beta.0 app/components/coco/app/elements/menu_items/user_profile/user_profile.rb
coveragebook_components-0.10.0 app/components/coco/app/elements/menu_items/user_profile/user_profile.rb
coveragebook_components-0.9.1 app/components/coco/app/elements/menu_items/user_profile/user_profile.rb
coveragebook_components-0.9.0 app/components/coco/app/elements/menu_items/user_profile/user_profile.rb
coveragebook_components-0.8.9 app/components/coco/app/elements/menu_items/user_profile/user_profile.rb
coveragebook_components-0.8.8 app/components/coco/app/elements/menu_items/user_profile/user_profile.rb
coveragebook_components-0.8.7 app/components/coco/app/elements/menu_items/user_profile/user_profile.rb
coveragebook_components-0.8.6 app/components/coco/app/elements/menu_items/user_profile/user_profile.rb
coveragebook_components-0.8.5 app/components/coco/app/elements/menu_items/user_profile/user_profile.rb
coveragebook_components-0.8.4 app/components/coco/app/elements/menu_items/user_profile/user_profile.rb
coveragebook_components-0.8.3 app/components/coco/app/elements/menu_items/user_profile/user_profile.rb
coveragebook_components-0.8.2 app/components/coco/app/elements/menu_items/user_profile/user_profile.rb
coveragebook_components-0.8.1 app/components/coco/app/elements/menu_items/user_profile/user_profile.rb
coveragebook_components-0.8.0 app/components/coco/app/elements/menu_items/user_profile/user_profile.rb