Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
martyn-w committed Apr 24, 2024
1 parent 4090194 commit 9763946
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/components/header/navigation_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def category_list_id(resource, mode)
end

def category_link(subcategory, resource, mode)
title = subcategory || 'Main details'
title = subcategory || "Main details"
li_id = "#{resource.path.parameterize}-#{title.parameterize}-#{mode}"
li_sync_id = "#{resource.path.parameterize}-#{title.parameterize}-#{sync_mode(mode)}"
child_menu_id = page_list_id(resource, subcategory, mode)
Expand Down Expand Up @@ -107,10 +107,10 @@ def page_list(resource:, subcategory:, css_class:, mode:)
end
end

def view_all_link(resource, _mode)
def view_all_link(resource, mode)
title = "View all in #{resource.title}"
path = resource.path
id = "menu-view-all-#{resource.path.parameterize}"
id = "menu-view-all-#{path.parameterize}-#{mode.parameterize}"
li_css = "view-all #{'active' if uri_is_root?(path)}"
link_css = "link--black"

Expand Down

0 comments on commit 9763946

Please sign in to comment.