fix linter

This commit is contained in:
Lisa Durand 2023-06-08 14:41:42 +02:00
parent 1335a3192c
commit a1ace0f173

View file

@ -79,12 +79,12 @@ module DossierHelper
def status_badge(state, alignment_class = '') def status_badge(state, alignment_class = '')
status_text = dossier_display_state(state, lower: true) status_text = dossier_display_state(state, lower: true)
tag.span status_text, role: 'status', class: class_names( tag.span status_text, role: 'status', class: class_names(
'fr-badge fr-badge--sm' => true, 'fr-badge fr-badge--sm' => true,
'fr-badge--no-icon' => [Dossier.states.fetch(:en_instruction), Dossier.states.fetch(:accepte)].include?(state), 'fr-badge--no-icon' => [Dossier.states.fetch(:en_instruction), Dossier.states.fetch(:accepte)].include?(state),
class_badge_state(state) => true, class_badge_state(state) => true,
alignment_class => true alignment_class => true
) )
end end
def deletion_reason_badge(reason) def deletion_reason_badge(reason)