Skip to content

Commit

Permalink
fix the comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaryanpal committed Sep 24, 2024
1 parent d291081 commit 8c44cfc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<%= content_tag :div, class: "#{params[:view_type] == "grid" ? "flex-wrap" : "space-x-2"} flex flex-row justify-evenly ml-2 has-record-selector:ml-0" do %>
<%= content_tag :div, class: "#{view_type == "grid" ? "flex-wrap" : "space-x-2"} flex flex-row justify-evenly ml-2 has-record-selector:ml-0" do %>
<% @resource.render_row_controls(item: singular_resource_name).each do |control| %>
<%= render_control control %>
<% end %>
Expand Down
4 changes: 4 additions & 0 deletions app/components/avo/index/resource_controls_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -172,4 +172,8 @@ def hidden_params

hidden.compact
end

def view_type
params[:view_type]
end
end

0 comments on commit 8c44cfc

Please sign in to comment.