Skip to content

Commit 58bed60

Browse files
committed
🍱 (expo): Update OPDS search empty state to use artwork
1 parent ed6cbad commit 58bed60

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

apps/expo/app/opds/[id]/(tabs)/search/[query].tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
import { useRefetch, useSDK } from '@stump/client'
22
import { useQuery } from '@tanstack/react-query'
33
import { useLocalSearchParams } from 'expo-router'
4-
import { Rss } from 'lucide-react-native'
54
import { Platform, ScrollView } from 'react-native'
65
import { SafeAreaView } from 'react-native-safe-area-context'
76

87
import ChevronBackLink from '~/components/ChevronBackLink'
8+
import EmptyState from '~/components/EmptyState'
99
import { MaybeErrorFeed, OPDSFeed } from '~/components/opds'
1010
import RefreshControl from '~/components/RefreshControl'
11-
import { ListEmptyMessage } from '~/components/ui'
1211
import { useOPDSFeedContext } from '~/context/opds'
1312
import { useDynamicHeader } from '~/lib/hooks/useDynamicHeader'
1413
import { constructSearchURL } from '~/lib/opdsUtils'
@@ -44,7 +43,7 @@ export default function Screen() {
4443

4544
const render = () => {
4645
if (emptyFeed) {
47-
return <ListEmptyMessage icon={Rss} message="No results for this search" />
46+
return <EmptyState title="Empty Feed" message="Your search returned no results" />
4847
} else if (feed && !error) {
4948
return <OPDSFeed feed={feed} />
5049
} else {

0 commit comments

Comments
 (0)