Skip to content

Commit

Permalink
remove waitForNavigation and OnyxTabNavigator from SearchPageBottomTa…
Browse files Browse the repository at this point in the history
…b v2
  • Loading branch information
adamgrzybowski committed Apr 10, 2024
1 parent 633d881 commit 2d78c11
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/pages/Search/SearchPageBottomTab.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
import React, {useState} from 'react';
import React from 'react';
import {View} from 'react-native';
import MenuItem from '@components/MenuItem';
import ScreenWrapper from '@components/ScreenWrapper';
import TabSelector from '@components/TabSelector/TabSelector';
import useActiveRoute from '@hooks/useActiveRoute';
import useSingleExecution from '@hooks/useSingleExecution';
import useThemeStyles from '@hooks/useThemeStyles';
import useWaitForNavigation from '@hooks/useWaitForNavigation';
import useWindowDimensions from '@hooks/useWindowDimensions';
import Navigation from '@libs/Navigation/Navigation';
import OnyxTabNavigator, {TopTab} from '@libs/Navigation/OnyxTabNavigator';
import * as Expensicons from '@src/components/Icon/Expensicons';
import CONST from '@src/CONST';
import ROUTES from '@src/ROUTES';
import type IconAsset from '@src/types/utils/IconAsset';
import SearchResults from './SearchResults';

type SearchMenuItem = {
title: string;
Expand All @@ -25,8 +21,6 @@ type SearchMenuItem = {
function SearchPageBottomTab() {
const styles = useThemeStyles();
const {singleExecution} = useSingleExecution();
const {isSmallScreenWidth} = useWindowDimensions();
const waitForNavigate = useWaitForNavigation();
const activeRoute = useActiveRoute();
const currentQuery = activeRoute?.params?.query;

Expand Down

0 comments on commit 2d78c11

Please sign in to comment.