diff --git a/src/view/screens/Search/Search.tsx b/src/view/screens/Search/Search.tsx
index 08f4fbd7..b36f0407 100644
--- a/src/view/screens/Search/Search.tsx
+++ b/src/view/screens/Search/Search.tsx
@@ -65,7 +65,6 @@ function Loader() {
)
}
-// TODO refactor how to translate?
function EmptyState({message, error}: {message: string; error?: string}) {
const pal = usePalette('default')
const {isMobile} = useWebMediaQueries()
@@ -196,6 +195,7 @@ type SearchResultSlice =
}
function SearchScreenPostResults({query}: {query: string}) {
+ const {_} = useLingui()
const pal = usePalette('default')
const [isPTR, setIsPTR] = React.useState(false)
const {
@@ -246,7 +246,9 @@ function SearchScreenPostResults({query}: {query: string}) {
return error ? (
) : (
@@ -278,7 +280,7 @@ function SearchScreenPostResults({query}: {query: string}) {
contentContainerStyle={{paddingBottom: 100}}
/>
) : (
-
+
)}
>
) : (
@@ -289,6 +291,7 @@ function SearchScreenPostResults({query}: {query: string}) {
}
function SearchScreenUserResults({query}: {query: string}) {
+ const {_} = useLingui()
const [isFetched, setIsFetched] = React.useState(false)
const [dataUpdatedAt, setDataUpdatedAt] = React.useState(0)
const [results, setResults] = React.useState<
@@ -335,7 +338,7 @@ function SearchScreenUserResults({query}: {query: string}) {
contentContainerStyle={{paddingBottom: 100}}
/>
) : (
-
+
)}
>
) : (
@@ -587,7 +590,7 @@ export function SearchScreenMobile(
/>
))
) : (
-
+
)}
diff --git a/src/view/shell/desktop/Search.tsx b/src/view/shell/desktop/Search.tsx
index 831eda7c..5033fc2d 100644
--- a/src/view/shell/desktop/Search.tsx
+++ b/src/view/shell/desktop/Search.tsx
@@ -157,7 +157,7 @@ export function DesktopSearch() {
/>