From 5512a712530208f4d1ea53fe2142bad6717d3a2f Mon Sep 17 00:00:00 2001 From: Greg Rushton Date: Thu, 3 Nov 2022 05:29:40 -0400 Subject: [PATCH 1/2] swap default pages for researcher tab --- src/components/DuosHeader.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/DuosHeader.js b/src/components/DuosHeader.js index a475461a1..12a909c08 100644 --- a/src/components/DuosHeader.js +++ b/src/components/DuosHeader.js @@ -123,11 +123,11 @@ export const headerTabsConfig = [ }, { label: 'Researcher Console', - link: '/researcher_console', + link: '/dataset_catalog', search: 'researcher_console', children: [ - { label: 'DAR Requests', link: '/researcher_console' }, - { label: 'Data Catalog', link: '/dataset_catalog' } + { label: 'Data Catalog', link: '/dataset_catalog' }, + { label: 'DAR Requests', link: '/researcher_console' } ], isRendered: (user) => user.isResearcher } From 25d6bc5387ba97cf2edc1ad964c4f4c171d08707 Mon Sep 17 00:00:00 2001 From: Connor Barker Date: Thu, 3 Nov 2022 15:04:48 -0400 Subject: [PATCH 2/2] fix navigation header not working --- src/components/DuosHeader.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/DuosHeader.js b/src/components/DuosHeader.js index 12a909c08..f90557947 100644 --- a/src/components/DuosHeader.js +++ b/src/components/DuosHeader.js @@ -124,7 +124,7 @@ export const headerTabsConfig = [ { label: 'Researcher Console', link: '/dataset_catalog', - search: 'researcher_console', + search: 'dataset_catalog', children: [ { label: 'Data Catalog', link: '/dataset_catalog' }, { label: 'DAR Requests', link: '/researcher_console' } @@ -181,7 +181,7 @@ const NavigationTabsComponent = (props) => { to: { pathname: tab.link, state: { - selectedMenuTab: selectedMenuTab, + selectedMenuTab: tabIndex, }, }, component: Link