Skip to content

Commit

Permalink
refactor: namespace TabsExplanationComponent under Instructeurs
Browse files Browse the repository at this point in the history
  • Loading branch information
colinux committed Dec 20, 2024
1 parent 1373dac commit 6835717
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
4 changes: 4 additions & 0 deletions app/components/instructeurs/tabs_explanations_component.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# frozen_string_literal: true

class Instructeurs::TabsExplanationsComponent < ApplicationComponent
end
4 changes: 0 additions & 4 deletions app/components/tabs_explanations_component.rb

This file was deleted.

2 changes: 1 addition & 1 deletion app/views/instructeurs/procedures/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
.fr-container
.flex.fr-mb-2v
%h1.fr-h3.fr-mb-0 Démarches
= render TabsExplanationsComponent.new
= render Instructeurs::TabsExplanationsComponent.new
= render partial: 'instructeurs/procedures/synthese', locals: { procedures: @procedures, all_dossiers_counts: @all_dossiers_counts }

%nav.fr-tabs{ role: 'navigation', 'aria-label': t('views.users.dossiers.secondary_menu') }
Expand Down
2 changes: 1 addition & 1 deletion app/views/instructeurs/procedures/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
%hr
.flex
%h1.fr-h5.fr-mb-0= t('.file_tracking')
= render TabsExplanationsComponent.new
= render Instructeurs::TabsExplanationsComponent.new

.fr-container
.flex= render partial: "tabs", locals: { procedure: @procedure,
Expand Down

0 comments on commit 6835717

Please sign in to comment.