2024-04-29 00:17:15 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2023-05-30 14:42:36 +02:00
|
|
|
class EditableChamp::COJOComponent < EditableChamp::EditableChampBaseComponent
|
|
|
|
def input_group_class
|
|
|
|
if @champ.accreditation_success?
|
|
|
|
'fr-input-group--valid'
|
|
|
|
elsif @champ.accreditation_error?
|
|
|
|
'fr-input-group--error'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|