diff --git a/dev-client/src/screens/ProjectSitesScreen.tsx b/dev-client/src/screens/ProjectSitesScreen.tsx index bc99b9efb..debff7e90 100644 --- a/dev-client/src/screens/ProjectSitesScreen.tsx +++ b/dev-client/src/screens/ProjectSitesScreen.tsx @@ -15,13 +15,14 @@ * along with this program. If not, see https://www.gnu.org/licenses/. */ -import {useCallback, useMemo} from 'react'; +import {useCallback, useMemo, useState} from 'react'; import {useTranslation} from 'react-i18next'; +import {Menu} from 'react-native-paper'; import {MaterialTopTabScreenProps} from '@react-navigation/material-top-tabs'; import type {CompositeScreenProps} from '@react-navigation/native'; import {createSelector} from '@reduxjs/toolkit'; -import {Button, FlatList, Menu, Pressable} from 'native-base'; +import {Button, FlatList} from 'native-base'; import { Project, @@ -47,7 +48,6 @@ import {ConfirmModal} from 'terraso-mobile-client/components/modals/ConfirmModal import { Box, Column, - Row, Text, } from 'terraso-mobile-client/components/NativeBaseAdapters'; import {RestrictByProjectRole} from 'terraso-mobile-client/components/RestrictByRole'; @@ -63,23 +63,6 @@ import {AppState, useDispatch, useSelector} from 'terraso-mobile-client/store'; import {theme} from 'terraso-mobile-client/theme'; import {searchText} from 'terraso-mobile-client/util'; -type SiteMenuProps = { - text: string; - onPress?: () => void; -}; - -const SiteMenuItem = ({text, onPress}: SiteMenuProps) => { - return ( -