Skip to content

Commit 742a1f0

Browse files
committed
Use the Previous/Next component from the gem
https://trello.com/c/NWSyhT8W
1 parent 2079044 commit 742a1f0

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

app/views/content_items/guide.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
direction: page_text_direction,
2929
disable_youtube_expansions: true,
3030
rich_govspeak: true %>
31-
<%= render 'govuk_component/previous_and_next_navigation', @content_item.previous_and_next_navigation %>
31+
<%= render 'govuk_publishing_components/components/previous_and_next_navigation', @content_item.previous_and_next_navigation %>
3232

3333
<% if @content_item.multi_page_guide? %>
3434
<%= render 'components/print-link', href: @content_item.print_link, link_text: t("multi_page.print_entire_guide") %>

app/views/content_items/travel_advice.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
content: @content_item.current_part_body,
5555
direction: page_text_direction %>
5656

57-
<%= render 'govuk_component/previous_and_next_navigation', @content_item.previous_and_next_navigation %>
57+
<%= render 'govuk_publishing_components/components/previous_and_next_navigation', @content_item.previous_and_next_navigation %>
5858

5959
<%= render 'components/print-link', href: @content_item.print_link, link_text: t("multi_page.print_entire_guide") %>
6060
</div>

test/integration/guide_test.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class GuideTest < ActionDispatch::IntegrationTest
1212
assert_has_component_title(@content_item['title'])
1313

1414
assert page.has_css?('h1', text: @content_item['details']['parts'].first['title'])
15-
assert page.has_css?(shared_component_selector("previous_and_next_navigation"))
15+
assert page.has_css?('.gem-c-pagination')
1616
assert page.has_css?('.app-c-print-link a[href$="/print"]')
1717
end
1818

test/integration/travel_advice_test.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class TravelAdviceTest < ActionDispatch::IntegrationTest
2323
assert page.has_css?(".part-navigation li a[href*=\"#{part['slug']}\"]", text: part['title'])
2424
end
2525

26-
assert page.has_css?(shared_component_selector("previous_and_next_navigation"))
26+
assert page.has_css?('.gem-c-pagination')
2727
assert page.has_css?('.app-c-print-link a[href$="/print"]')
2828
end
2929

0 commit comments

Comments
 (0)