From e2ff35915f88f1f15def6cca6b8ee72acb57b5a8 Mon Sep 17 00:00:00 2001 From: dominictb Date: Wed, 28 Aug 2024 14:07:34 +0700 Subject: [PATCH] fix: display offline UI for search page in offline mode --- src/components/Search/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Search/index.tsx b/src/components/Search/index.tsx index dd175023a52c..1f7b8853d2c5 100644 --- a/src/components/Search/index.tsx +++ b/src/components/Search/index.tsx @@ -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'; @@ -206,7 +207,7 @@ function Search({queryJSON, isCustomQuery}: SearchProps) { if (searchResults === undefined) { Log.alert('[Search] Undefined search type'); - return null; + return {null}; } const ListItem = SearchUtils.getListItem(status);