Skip to content

Commit 1ec4e07

Browse files
feat: Add disabled prop to ProfileItemComponent (#3589)
1 parent 475e6d8 commit 1ec4e07

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

app/components/avo/profile_item_component.html.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
target: target,
66
title: title,
77
method: method,
8+
disabled: disabled,
89
params: params do %>
910
<%= helpers.svg(icon, class: 'h-4 mr-1') if icon.present? %> <%= label %>
1011
<% end %>

app/components/avo/profile_item_component.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ class Avo::ProfileItemComponent < Avo::BaseComponent
1212
end
1313
prop :title, reader: :public
1414
prop :method, reader: :public
15+
prop :disabled, reader: :public
1516
prop :params, default: {}.freeze, reader: :public
1617
prop :classes, default: "", reader: :public
1718

0 commit comments

Comments
 (0)