From e595318cbe6352f930d3ead572528bf6d9b866b5 Mon Sep 17 00:00:00 2001 From: oscar-ip <136661790+oscar-ip@users.noreply.github.com> Date: Wed, 16 Oct 2024 13:42:49 -0600 Subject: [PATCH] NERT-184 fixed keyboard navigation issue (#265) Co-authored-by: Oscar Inostroza --- app/src/components/layout/Header.tsx | 2 +- app/src/features/admin/reports/AppCustomReportPage.tsx | 3 ++- app/src/features/admin/reports/AppPiMgmtReportPage.tsx | 3 ++- app/src/features/admin/reports/AppUserReportPage.tsx | 3 ++- app/src/features/admin/users/UsersDetailHeader.tsx | 3 ++- app/src/features/plans/create/CreatePlanPage.tsx | 3 ++- app/src/features/plans/edit/EditPlanPage.tsx | 3 ++- .../plans/participants/PlanParticipantsHeader.tsx | 9 +++++++-- app/src/features/projects/create/CreateProjectPage.tsx | 4 +++- app/src/features/projects/edit/EditProjectPage.tsx | 3 ++- .../projects/participants/ProjectParticipantsHeader.tsx | 9 +++++++-- 11 files changed, 32 insertions(+), 13 deletions(-) diff --git a/app/src/components/layout/Header.tsx b/app/src/components/layout/Header.tsx index 235ea778..54834ad5 100644 --- a/app/src/components/layout/Header.tsx +++ b/app/src/components/layout/Header.tsx @@ -282,7 +282,7 @@ const Header: React.FC = () => { { return ( - + { return ( - + { return ( - + = (props) => { return ( <> - + history('/admin/users')} aria-current="page" diff --git a/app/src/features/plans/create/CreatePlanPage.tsx b/app/src/features/plans/create/CreatePlanPage.tsx index 24a055df..b5897dd2 100644 --- a/app/src/features/plans/create/CreatePlanPage.tsx +++ b/app/src/features/plans/create/CreatePlanPage.tsx @@ -365,8 +365,9 @@ const CreatePlanPage: React.FC = () => { /> - + { /> - + = (props) = <> - - history('/admin/plans')} aria-current="page"> + + history('/admin/plans')} + aria-current="page"> Plans history(`/admin/plans/${props.planWithDetails.project.project_id}`)} aria-current="page"> diff --git a/app/src/features/projects/create/CreateProjectPage.tsx b/app/src/features/projects/create/CreateProjectPage.tsx index d5405fda..a6f9c41d 100644 --- a/app/src/features/projects/create/CreateProjectPage.tsx +++ b/app/src/features/projects/create/CreateProjectPage.tsx @@ -449,8 +449,10 @@ const CreateProjectPage: React.FC = () => { /> - + { /> - + = (pr <> - - history('/admin/projects')} aria-current="page"> + + history('/admin/projects')} + aria-current="page"> Projects history(`/admin/projects/${urlParams['id']}/details`)} aria-current="page">