Skip to content

Commit b9b2d0c

Browse files
committed
Update page_section > page_block
1 parent 7e30513 commit b9b2d0c

File tree

21 files changed

+29
-29
lines changed

21 files changed

+29
-29
lines changed

app/components/messages/thread_show/component.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
) %>
1010

1111
<%# TODO: show this too! %>
12-
<%# = render(PageSection::MarketplaceListingPanel::Component.new(marketplace_listing: @bike.current_marketplace_listing)) %>
12+
<%# = render(PageBlock::MarketplaceListingPanel::Component.new(marketplace_listing: @bike.current_marketplace_listing)) %>
1313

1414
<% if @marketplace_messages.any? %>
1515
<% @marketplace_messages.each do |marketplace_message| %>
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
22
en:
33
components:
4-
page_section:
4+
page_block:
55
choose_membership: {}

app/components/page_section/choose_membership/component.rb renamed to app/components/page_block/choose_membership/component.rb

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-
module PageSection::ChooseMembership
3+
module PageBlock::ChooseMembership
44
class Component < ApplicationComponent
55
def initialize(currency:, interval: nil, level: nil, membership: nil, referral_source: nil)
66
@currency = currency
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# frozen_string_literal: true
2+
3+
module PageBlock::ChooseMembership
4+
class ComponentPreview < ApplicationComponentPreview
5+
def default
6+
render(PageBlock::ChooseMembership::Component.new(currency: Currency.default))
7+
end
8+
end
9+
end

app/components/page_section/marketplace_listing_panel/component.en.yml renamed to app/components/page_block/marketplace_listing_panel/component.en.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
en:
33
components:
4-
page_section:
4+
page_block:
55
marketplace_listing_panel:
66
condition: Condition
77
description: Description

app/components/page_section/marketplace_listing_panel/component.rb renamed to app/components/page_block/marketplace_listing_panel/component.rb

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-
module PageSection::MarketplaceListingPanel
3+
module PageBlock::MarketplaceListingPanel
44
class Component < ApplicationComponent
55
def initialize(marketplace_listing: nil)
66
@marketplace_listing = marketplace_listing

app/components/page_section/marketplace_listing_panel/component_preview.rb renamed to app/components/page_block/marketplace_listing_panel/component_preview.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# frozen_string_literal: true
22

3-
module PageSection::MarketplaceListingPanel
3+
module PageBlock::MarketplaceListingPanel
44
class ComponentPreview < ApplicationComponentPreview
55
def default
6-
render(PageSection::MarketplaceListingPanel::Component.new(marketplace_listing:))
6+
render(PageBlock::MarketplaceListingPanel::Component.new(marketplace_listing:))
77
end
88

99
private

app/components/org/bike_access_panel/component.en.yml renamed to app/components/page_block/org_bike_access_panel/component.en.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
en:
33
components:
4-
org:
5-
bike_access_panel:
4+
page_block:
5+
org_bike_access_panel:
66
access_panel: Access Panel
77
added_to_track_parking_notification: >-
88
This %{bike_type} is not registered to a user. It was added to track parking

0 commit comments

Comments
 (0)