diff --git a/src/components/ConversationListHeader.tsx b/src/components/ConversationListHeader.tsx index eae95b3..c564c45 100644 --- a/src/components/ConversationListHeader.tsx +++ b/src/components/ConversationListHeader.tsx @@ -17,12 +17,7 @@ export interface ConversationListHeaderProps { onShowMessageRequests: () => void; } -export const ConversationListHeader: FC = ({ - list, - showPickerModal, - messageRequestCount, - onShowMessageRequests, -}) => { +export const ConversationListHeader: FC = () => { const {navigate} = useTypedNavigation(); const {address} = useAddress(); const {avatarUrl} = useContactInfo(address); @@ -34,11 +29,6 @@ export const ConversationListHeader: FC = ({ const handleAccountPress = useCallback(() => { navigate(ScreenNames.Account); }, [navigate]); - const navigateToDev = useCallback(() => { - if (__DEV__) { - navigate(ScreenNames.Dev); - } - }, [navigate]); return ( = ({ size={40} /> - {/* - - - } - */} {translate('group_chats')} - + - {/* { - list === 'MESSAGE_REQUESTS' ? ( - - - {translate('message_requests_from_new_addresses')} - - - ) : messageRequestCount > 0 ? ( - - - - - - - {translate('message_requests_count', { - count: String(messageRequestCount), - })} - - - - - - - ) : ( - - ) - } */} - + ); }; diff --git a/src/screens/ConversationListScreen.tsx b/src/screens/ConversationListScreen.tsx index a30b523..9498622 100644 --- a/src/screens/ConversationListScreen.tsx +++ b/src/screens/ConversationListScreen.tsx @@ -1,4 +1,3 @@ -import {useIsFocused} from '@react-navigation/native'; import {Group} from '@xmtp/react-native-sdk'; import {Box, Center, FlatList, HStack, VStack} from 'native-base'; import React, {useCallback, useMemo, useState} from 'react'; @@ -14,9 +13,7 @@ import {AppConfig} from '../consts/AppConfig'; import {SupportedContentTypes} from '../consts/ContentTypes'; import {TestIds} from '../consts/TestIds'; import {useClient} from '../hooks/useClient'; -import {useTypedNavigation} from '../hooks/useTypedNavigation'; import {translate} from '../i18n'; -import {ScreenNames} from '../navigation/ScreenNames'; import {useListQuery} from '../queries/useListQuery'; import {mmkvStorage} from '../services/mmkvStorage'; import {colors} from '../theme/colors'; @@ -74,7 +71,6 @@ export const ConversationListScreen = () => { ); const [showPickerModal, setShowPickerModal] = useState(false); const [showConsentDrawer, setShowConsentDrawer] = useState(false); - const focused = useIsFocused(); const { messages, messageRequests, @@ -83,14 +79,10 @@ export const ConversationListScreen = () => { refetch, isRefetching, } = useData(); - const {navigate} = useTypedNavigation(); const showPicker = () => { setShowPickerModal(true); }; - const handleNewMessagePress = useCallback(() => { - navigate(ScreenNames.Search); - }, [navigate]); const handleFilterPress = useCallback( (type: 'ALL_MESSAGES' | 'MESSAGE_REQUESTS') => { diff --git a/src/screens/DevScreen.tsx b/src/screens/DevScreen.tsx index 906680c..a373579 100644 --- a/src/screens/DevScreen.tsx +++ b/src/screens/DevScreen.tsx @@ -37,7 +37,9 @@ const RequestItem: FC = ({title, request}) => { return JSON.stringify(data, (key, value) => { if (typeof value === 'object' && value !== null) { // Duplicate reference found, discard key - if (cache.includes(value)) return; + if (cache.includes(value)) { + return; + } // Store value in our collection cache.push(value); @@ -73,7 +75,9 @@ const DataItem: FC = ({title, data}) => { return JSON.stringify(data, (key, value) => { if (typeof value === 'object' && value !== null) { // Duplicate reference found, discard key - if (cache.includes(value)) return; + if (cache.includes(value)) { + return; + } // Store value in our collection cache.push(value);