Skip to content

Commit

Permalink
Request changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Nevelito committed Nov 20, 2024
1 parent 2361fb6 commit 0cf6551
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 4 additions & 4 deletions app/components/avo/tab_header_component.html.erb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<div>
<% if title.present? %>
<h2 class="text-2xl font-semibold text-gray-800 flex items-center"><%= title %></h2>
<% if @title.present? %>
<h2 class="text-2xl font-semibold text-gray-800 flex items-center"><%= @title %></h2>
<% end %>
<% if description.present? %>
<p class="text-sm font-medium text-gray-600 text-center sm:text-left"><%= description %></p>
<% if @description.present? %>
<p class="text-sm font-medium text-gray-600 text-center sm:text-left"><%= @description %></p>
<% end %>
</div>
8 changes: 6 additions & 2 deletions app/components/avo/tab_header_component.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
class Avo::TabHeaderComponent < Avo::BaseComponent
prop :title, reader: :public
prop :description, reader: :public
prop :title
prop :description

def render?
(@title || @description).present?
end
end

0 comments on commit 0cf6551

Please sign in to comment.