Skip to content

Commit

Permalink
Merge pull request #48146 from dominictb/fix/47604-offline
Browse files Browse the repository at this point in the history
fix: display offline UI for search page in offline mode
  • Loading branch information
puneetlath authored Sep 6, 2024
2 parents 15f260a + e2ff359 commit 833f0b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Search/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import type {StackNavigationProp} from '@react-navigation/stack';
import React, {useCallback, useEffect, useRef, useState} from 'react';
import type {OnyxEntry} from 'react-native-onyx';
import {useOnyx} from 'react-native-onyx';
import FullPageOfflineBlockingView from '@components/BlockingViews/FullPageOfflineBlockingView';
import ConfirmModal from '@components/ConfirmModal';
import DecisionModal from '@components/DecisionModal';
import SearchTableHeader from '@components/SelectionList/SearchTableHeader';
Expand Down Expand Up @@ -216,7 +217,7 @@ function Search({queryJSON}: SearchProps) {

if (searchResults === undefined) {
Log.alert('[Search] Undefined search type');
return null;
return <FullPageOfflineBlockingView>{null}</FullPageOfflineBlockingView>;
}

const ListItem = SearchUtils.getListItem(status);
Expand Down

0 comments on commit 833f0b5

Please sign in to comment.