about summary refs log tree commit diff
path: root/src/screens
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2025-04-04 10:30:12 -0500
committerGitHub <noreply@github.com>2025-04-04 08:30:12 -0700
commit94bc677ef5ffdf69fd952de41a59d8b5aac9a360 (patch)
treeb2482a3ad719a1d5dac7e2f3b03673ff12da57d1 /src/screens
parent148bfa803d3116dfaf6513ca947e585d8d3bfc78 (diff)
downloadvoidsky-94bc677ef5ffdf69fd952de41a59d8b5aac9a360.tar.zst
Rename search to explore in titles and links (#8116)
* Rename search to explore in titles and links

* Conditionally use Explore
Diffstat (limited to 'src/screens')
-rw-r--r--src/screens/Search/Shell.tsx4
-rw-r--r--src/screens/Search/index.tsx8
2 files changed, 10 insertions, 2 deletions
diff --git a/src/screens/Search/Shell.tsx b/src/screens/Search/Shell.tsx
index e930b8289..e48f3d455 100644
--- a/src/screens/Search/Shell.tsx
+++ b/src/screens/Search/Shell.tsx
@@ -55,12 +55,14 @@ export function SearchScreenShell({
   fixedParams,
   navButton = 'menu',
   inputPlaceholder,
+  isExplore,
 }: {
   queryParam: string
   testID: string
   fixedParams?: Params
   navButton?: 'back' | 'menu'
   inputPlaceholder?: string
+  isExplore?: boolean
 }) {
   const t = useTheme()
   const {gtMobile} = useBreakpoints()
@@ -302,7 +304,7 @@ export function SearchScreenShell({
                 )}
                 <Layout.Header.Content align="left">
                   <Layout.Header.TitleText>
-                    <Trans>Search</Trans>
+                    {isExplore ? <Trans>Explore</Trans> : <Trans>Search</Trans>}
                   </Layout.Header.TitleText>
                 </Layout.Header.Content>
                 {showFilters ? (
diff --git a/src/screens/Search/index.tsx b/src/screens/Search/index.tsx
index 429f1e5c7..ba04ebb20 100644
--- a/src/screens/Search/index.tsx
+++ b/src/screens/Search/index.tsx
@@ -9,5 +9,11 @@ export function SearchScreen(
 ) {
   const queryParam = props.route?.params?.q ?? ''
 
-  return <SearchScreenShell queryParam={queryParam} testID="searchScreen" />
+  return (
+    <SearchScreenShell
+      queryParam={queryParam}
+      testID="searchScreen"
+      isExplore
+    />
+  )
 }