From 6835717c531f4942b488b01ab16cac546763ad5c Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Fri, 20 Dec 2024 12:56:23 +0100 Subject: [PATCH] refactor: namespace TabsExplanationComponent under Instructeurs --- app/components/instructeurs/tabs_explanations_component.rb | 4 ++++ .../tabs_explanations_component.en.yml | 0 .../tabs_explanations_component.fr.yml | 0 .../tabs_explanations_component.html.haml | 0 app/components/tabs_explanations_component.rb | 4 ---- app/views/instructeurs/procedures/index.html.haml | 2 +- app/views/instructeurs/procedures/show.html.haml | 2 +- 7 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 app/components/instructeurs/tabs_explanations_component.rb rename app/components/{ => instructeurs}/tabs_explanations_component/tabs_explanations_component.en.yml (100%) rename app/components/{ => instructeurs}/tabs_explanations_component/tabs_explanations_component.fr.yml (100%) rename app/components/{ => instructeurs}/tabs_explanations_component/tabs_explanations_component.html.haml (100%) delete mode 100644 app/components/tabs_explanations_component.rb diff --git a/app/components/instructeurs/tabs_explanations_component.rb b/app/components/instructeurs/tabs_explanations_component.rb new file mode 100644 index 00000000000..e621ddf8c6c --- /dev/null +++ b/app/components/instructeurs/tabs_explanations_component.rb @@ -0,0 +1,4 @@ +# frozen_string_literal: true + +class Instructeurs::TabsExplanationsComponent < ApplicationComponent +end diff --git a/app/components/tabs_explanations_component/tabs_explanations_component.en.yml b/app/components/instructeurs/tabs_explanations_component/tabs_explanations_component.en.yml similarity index 100% rename from app/components/tabs_explanations_component/tabs_explanations_component.en.yml rename to app/components/instructeurs/tabs_explanations_component/tabs_explanations_component.en.yml diff --git a/app/components/tabs_explanations_component/tabs_explanations_component.fr.yml b/app/components/instructeurs/tabs_explanations_component/tabs_explanations_component.fr.yml similarity index 100% rename from app/components/tabs_explanations_component/tabs_explanations_component.fr.yml rename to app/components/instructeurs/tabs_explanations_component/tabs_explanations_component.fr.yml diff --git a/app/components/tabs_explanations_component/tabs_explanations_component.html.haml b/app/components/instructeurs/tabs_explanations_component/tabs_explanations_component.html.haml similarity index 100% rename from app/components/tabs_explanations_component/tabs_explanations_component.html.haml rename to app/components/instructeurs/tabs_explanations_component/tabs_explanations_component.html.haml diff --git a/app/components/tabs_explanations_component.rb b/app/components/tabs_explanations_component.rb deleted file mode 100644 index ddd1ce4e372..00000000000 --- a/app/components/tabs_explanations_component.rb +++ /dev/null @@ -1,4 +0,0 @@ -# frozen_string_literal: true - -class TabsExplanationsComponent < ApplicationComponent -end diff --git a/app/views/instructeurs/procedures/index.html.haml b/app/views/instructeurs/procedures/index.html.haml index c4aab73750e..e719ccabe33 100644 --- a/app/views/instructeurs/procedures/index.html.haml +++ b/app/views/instructeurs/procedures/index.html.haml @@ -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') } diff --git a/app/views/instructeurs/procedures/show.html.haml b/app/views/instructeurs/procedures/show.html.haml index ca42be39895..9a95021d974 100644 --- a/app/views/instructeurs/procedures/show.html.haml +++ b/app/views/instructeurs/procedures/show.html.haml @@ -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,