Skip to content

Commit

Permalink
Remove unused arguments from the Class object (#959)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaryanpal authored Sep 6, 2024
1 parent 82316bd commit 8831809
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion app/components/pet_avatar_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# Renders a Pet's image and the Heart like button
class PetAvatarComponent < ApplicationComponent
param :pet, Types::Instance(Pet)
option :like, optional: true
option :size, Types::Size, default: -> { :md }

private
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<% @pets.each do |pet| %>
<div class="col-lg-4 col-md-6 p-2">
<div class="pet-box p-3 border rounded bg-white d-flex align-items-center">
<%= render PetAvatarComponent.new(pet: pet, like: @like, size: :xl) %>
<%= render PetAvatarComponent.new(pet, size: :xl) %>
<div class=" d-flex justify-content-between align-items-center mt-2">
<span class="mx-3"><%= pet.name %></span>
<div id="like_button_pet_<%= pet.id %>">
Expand Down

0 comments on commit 8831809

Please sign in to comment.