Skip to content

Commit f25c531

Browse files
committed
Rename PageComponent to SectionComponent
Rename the ViewComponent class for better semantic clarity about its purpose as a reusable section container rather than a full page.
1 parent 1bdf6bf commit f25c531

49 files changed

Lines changed: 58 additions & 58 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
class PageComponent < ViewComponent::Base
3+
class SectionComponent < ViewComponent::Base
44
renders_one :action_list
55
renders_one :title_content
66

app/views/devise/confirmations/new.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<%= render PageComponent.new(title: t("devise.views.confirmations.new.title"), full_width: false) do %>
1+
<%= render SectionComponent.new(title: t("devise.views.confirmations.new.title"), full_width: false) do %>
22
<%= render "devise/shared/oauth_links" %>
33

44
<div class="divider"><%= t("devise.views.shared.links.oauth_separator") %></div>

app/views/devise/passwords/edit.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<%= render PageComponent.new(title: t("devise.views.passwords.edit.title"), full_width: false) do %>
1+
<%= render SectionComponent.new(title: t("devise.views.passwords.edit.title"), full_width: false) do %>
22
<%= simple_form_for resource, as: resource_name, url: password_path(resource_name), method: :put, html: { class: "space-y-4" } do |f| %>
33
<%= render "shared/errors", object: resource %>
44
<%= f.hidden_field :reset_password_token %>

app/views/devise/passwords/new.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<%= render PageComponent.new(title: t("devise.views.passwords.new.title"), full_width: false) do %>
1+
<%= render SectionComponent.new(title: t("devise.views.passwords.new.title"), full_width: false) do %>
22
<%= simple_form_for resource, as: resource_name, url: password_path(resource_name), method: :post, html: { class: "space-y-4" } do |f| %>
33
<%= render "shared/errors", object: resource %>
44

app/views/devise/registrations/edit.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<%= render PageComponent.new(title: t("devise.views.registrations.edit.title", email: resource.email), full_width: false) do %>
1+
<%= render SectionComponent.new(title: t("devise.views.registrations.edit.title", email: resource.email), full_width: false) do %>
22
<%= simple_form_for resource, as: resource_name, url: registration_path(resource_name), method: :put, html: { class: "space-y-4" } do |f| %>
33
<%= render "shared/errors", object: resource %>
44

app/views/devise/registrations/new.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<%= modal do %>
2-
<%= render PageComponent.new(title: t("devise.views.registrations.new.title"), full_width: false) do %>
2+
<%= render SectionComponent.new(title: t("devise.views.registrations.new.title"), full_width: false) do %>
33
<%= render "devise/shared/oauth_links" %>
44

55
<div class="divider"><%= t("devise.views.shared.links.oauth_separator") %></div>

app/views/devise/sessions/new.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<%= modal do %>
2-
<%= render PageComponent.new(title: t("devise.views.sessions.new.title"), full_width: false) do %>
2+
<%= render SectionComponent.new(title: t("devise.views.sessions.new.title"), full_width: false) do %>
33
<%= render "devise/shared/oauth_links" %>
44

55
<div class="divider"><%= t("devise.views.shared.links.oauth_separator") %></div>

app/views/devise/unlocks/new.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<%= render PageComponent.new(title: t("devise.views.unlocks.new.title"), full_width: false) do %>
1+
<%= render SectionComponent.new(title: t("devise.views.unlocks.new.title"), full_width: false) do %>
22
<%= render "devise/shared/oauth_links" %>
33

44
<div class="divider"><%= t("devise.views.shared.links.oauth_separator") %></div>

app/views/organizations/_tabs.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
}
2424
] %>
2525

26-
<%= render PageComponent.new(title: t("shared.navigation.organizations")) do |component| %>
26+
<%= render SectionComponent.new(title: t("shared.navigation.organizations")) do |component| %>
2727
<% component.with_action_list do %>
2828
<%= link_to t("shared.actions.create"), new_organization_path, data: { turbo_frame: :modal }, class: "btn btn-primary" %>
2929
<% end %>

0 commit comments

Comments
 (0)