Don't access RemoteConfig directly from 'dumb' components

This commit is contained in:
Scott Nonnenberg
2022-10-24 13:46:36 -07:00
committed by GitHub
parent e79380b37c
commit 0134990275
40 changed files with 352 additions and 353 deletions

View File

@@ -7,7 +7,6 @@ import React, { useCallback } from 'react';
import { BaseConversationListItem } from './BaseConversationListItem';
import type { LocalizerType } from '../../types/Util';
import { lookupConversationWithoutUuid } from '../../util/lookupConversationWithoutUuid';
import type { LookupConversationWithoutUuidActionsType } from '../../util/lookupConversationWithoutUuid';
import type { ShowConversationType } from '../../state/ducks/conversations';
@@ -26,6 +25,7 @@ export type Props = PropsData & PropsHousekeeping;
export const UsernameSearchResultListItem: FunctionComponent<Props> = ({
i18n,
isFetchingUsername,
lookupConversationWithoutUuid,
username,
showUserNotFoundModal,
setIsFetchingUUID,
@@ -48,11 +48,12 @@ export const UsernameSearchResultListItem: FunctionComponent<Props> = ({
showConversation({ conversationId });
}
}, [
username,
showUserNotFoundModal,
isFetchingUsername,
lookupConversationWithoutUuid,
setIsFetchingUUID,
showConversation,
isFetchingUsername,
showUserNotFoundModal,
username,
]);
return (