Extract component to render a switch
We're going to use it in other places.
This commit is contained in:
1
app/components/admin/toggle_switch_component.html.erb
Normal file
1
app/components/admin/toggle_switch_component.html.erb
Normal file
@@ -0,0 +1 @@
|
||||
<%= render Admin::ActionComponent.new(action, record, **default_options.merge(options)) %>
|
||||
Reference in New Issue
Block a user