refactor(demande): single champ row component everywhere

This commit is contained in:
Colin Darie 2023-07-03 22:41:46 +02:00
parent d41f224a2c
commit 0ffc14944d
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4
16 changed files with 204 additions and 226 deletions

View file

@ -8,7 +8,7 @@
%div{ id: section_id, 'data-expand-target': 'content' }
- if !champs.empty?
= render Dossiers::ChampRowShowComponent.new(champs: champs, demande_seen_at: @demande_seen_at, profile: @profile, repetition: false)
= render Dossiers::ChampsRowsShowComponent.new(champs: champs, seen_at: @demande_seen_at, profile: @profile)
- sections.each do |section|
= render section