From 17501c8d1fb384337c16572676c4f389766787fe Mon Sep 17 00:00:00 2001 From: 289Adam289 Date: Fri, 14 Mar 2025 13:02:25 +0100 Subject: [PATCH 1/9] align buttons search and help buttons --- src/components/HeaderWithBackButton/index.tsx | 6 +++--- src/components/Navigation/TopBar.tsx | 6 +++--- src/components/Search/SearchRouter/SearchRouter.tsx | 1 + src/components/SidePane/HelpButton.tsx | 2 +- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/components/HeaderWithBackButton/index.tsx b/src/components/HeaderWithBackButton/index.tsx index 68b59879d3dfd..85e590f0a04f0 100755 --- a/src/components/HeaderWithBackButton/index.tsx +++ b/src/components/HeaderWithBackButton/index.tsx @@ -148,7 +148,7 @@ function HeaderWithBackButton({ style, ]} > - + {shouldShowBackButton && ( )} {middleContent} - + {children} {shouldShowDownloadButton && (!isDownloading ? ( @@ -259,7 +259,7 @@ function HeaderWithBackButton({ )} {shouldDisplayHelpButton && } - {shouldDisplaySearchRouter && } + {shouldDisplaySearchRouter && } ); diff --git a/src/components/Navigation/TopBar.tsx b/src/components/Navigation/TopBar.tsx index dd7e848f8fe12..f740bb385fd97 100644 --- a/src/components/Navigation/TopBar.tsx +++ b/src/components/Navigation/TopBar.tsx @@ -44,10 +44,10 @@ function TopBar({breadcrumbLabel, activeWorkspaceID, shouldDisplaySearch = true, return ( - + @@ -65,7 +65,7 @@ function TopBar({breadcrumbLabel, activeWorkspaceID, shouldDisplaySearch = true, {!!cancelSearch && ( { cancelSearch(); }} diff --git a/src/components/Search/SearchRouter/SearchRouter.tsx b/src/components/Search/SearchRouter/SearchRouter.tsx index 5281032967cfc..a1b0a6f942fc9 100644 --- a/src/components/Search/SearchRouter/SearchRouter.tsx +++ b/src/components/Search/SearchRouter/SearchRouter.tsx @@ -312,6 +312,7 @@ function SearchRouter({onRouterClose, shouldHideInputCaret}: SearchRouterProps, onRouterClose()} + shouldDisplayHelpButton={false} /> )} {isRecentSearchesDataLoaded && ( diff --git a/src/components/SidePane/HelpButton.tsx b/src/components/SidePane/HelpButton.tsx index f436016540084..87fce5a15368a 100644 --- a/src/components/SidePane/HelpButton.tsx +++ b/src/components/SidePane/HelpButton.tsx @@ -30,7 +30,7 @@ function HelpButton({style}: HelpButtonProps) { { triggerSidePane({ isOpen: isExtraLargeScreenWidth ? !sidePane?.open : !sidePane?.openNarrowScreen, From 81f88921a5e302461c0411c46c249ea3e4311d56 Mon Sep 17 00:00:00 2001 From: 289Adam289 Date: Fri, 14 Mar 2025 13:02:59 +0100 Subject: [PATCH 2/9] remove redundant help button --- src/pages/home/sidebar/SignInButton.tsx | 2 +- src/pages/workspace/WorkspaceMoreFeaturesPage.tsx | 1 + src/pages/workspace/WorkspacePageWithSections.tsx | 1 + src/pages/workspace/accounting/PolicyAccountingPage.tsx | 1 + src/pages/workspace/categories/WorkspaceCategoriesPage.tsx | 1 + src/pages/workspace/distanceRates/PolicyDistanceRatesPage.tsx | 1 + src/pages/workspace/perDiem/WorkspacePerDiemPage.tsx | 1 + src/pages/workspace/reportFields/WorkspaceReportFieldsPage.tsx | 1 + src/pages/workspace/tags/WorkspaceTagsPage.tsx | 1 + src/pages/workspace/taxes/WorkspaceTaxesPage.tsx | 1 + 10 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/pages/home/sidebar/SignInButton.tsx b/src/pages/home/sidebar/SignInButton.tsx index c55ee3ce7b39d..f0fed077818b2 100644 --- a/src/pages/home/sidebar/SignInButton.tsx +++ b/src/pages/home/sidebar/SignInButton.tsx @@ -17,7 +17,7 @@ function SignInButton() { role={CONST.ROLE.BUTTON} onPress={() => Session.signOutAndRedirectToSignIn()} > - +