From b0c5822420efad8e6d56e37cb168d34dffab3919 Mon Sep 17 00:00:00 2001 From: FabrizioCostaMedich Date: Tue, 29 Oct 2024 11:58:59 +0100 Subject: [PATCH] fix(courses): search bar visible only on root-directory --- assets/translations/en.json | 4 ++-- assets/translations/it.json | 4 ++-- src/features/courses/screens/CourseDirectoryScreen.tsx | 10 ++++++---- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/assets/translations/en.json b/assets/translations/en.json index d33204e2..0770f25f 100644 --- a/assets/translations/en.json +++ b/assets/translations/en.json @@ -291,10 +291,10 @@ "subtitle_plural": "{{count}} files" }, "courseDirectoryScreen": { + "clearSearch": "Clear search", "noResult": "No results found", "navigateRecentFiles": "View recent", - "search": "Search", - "clearSearch": "Clear search" + "search": "Search" }, "courseFileListItem": { "openFileError": "Cannot open the file.", diff --git a/assets/translations/it.json b/assets/translations/it.json index 31df309c..fcb49a78 100644 --- a/assets/translations/it.json +++ b/assets/translations/it.json @@ -291,10 +291,10 @@ "subtitle_plural": "{{count}} file" }, "courseDirectoryScreen": { + "clearSearch": "Cancella ricerca", "noResult": "Nessun risultato trovato", "navigateRecentFiles": "Sfoglia file recenti", - "search": "Cerca", - "clearSearch": "Cancella ricerca" + "search": "Cerca" }, "courseFileListItem": { "openFileError": "Impossibile aprire il file.", diff --git a/src/features/courses/screens/CourseDirectoryScreen.tsx b/src/features/courses/screens/CourseDirectoryScreen.tsx index 705f2763..148fcf63 100644 --- a/src/features/courses/screens/CourseDirectoryScreen.tsx +++ b/src/features/courses/screens/CourseDirectoryScreen.tsx @@ -75,10 +75,12 @@ export const CourseDirectoryScreen = ({ route, navigation }: Props) => { - + {navigation.getId() === 'FileTabNavigator' && ( + + )} {searchFilter ? (