Skip to content

Commit

Permalink
fix: unknown keyword rel on menu link (#3210)
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Bob authored Sep 3, 2024
1 parent cd8d0dc commit ffb00be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/avo/sidebar/link_component.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<% if @path.present? %>
<%= send link_method, @path, class: classes, active: @active, target: @target, data: @data do %>
<%= send link_method, @path, class: classes, active: @active, target: @target, data: @data, **@args do %>
<%= helpers.svg @icon, class: "h-4 text-gray-700" if @icon.present? %>
<%= @label %>
<% if @target == :_blank %>
Expand Down
1 change: 1 addition & 0 deletions app/components/avo/sidebar/link_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class Avo::Sidebar::LinkComponent < Avo::BaseComponent
end
prop :data, Hash, default: {}.freeze
prop :icon, _Nilable(String)
prop :args, Hash, :**, default: {}.freeze

def is_external?
# If the path contains the scheme, check if it includes the root path or not
Expand Down

0 comments on commit ffb00be

Please sign in to comment.