inline communes_component

This commit is contained in:
simon lehericey 2024-11-26 21:56:58 +01:00 committed by Corinne Durrmeyer
parent f25c40ef1c
commit daf2abe5a8
No known key found for this signature in database
GPG key ID: DDC049DDA35585B6
2 changed files with 6 additions and 2 deletions

View file

@ -3,6 +3,12 @@
class EditableChamp::CommunesComponent < EditableChamp::EditableChampBaseComponent class EditableChamp::CommunesComponent < EditableChamp::EditableChampBaseComponent
include ApplicationHelper include ApplicationHelper
def call
tag.react_fragment do
render(ReactComponent.new("ComboBox/RemoteComboBox", **react_props))
end
end
def dsfr_input_classname def dsfr_input_classname
'fr-select' 'fr-select'
end end

View file

@ -1,2 +0,0 @@
%react-fragment
= render ReactComponent.new "ComboBox/RemoteComboBox", **react_props