Page MenuHomePhabricator

D12124.diff
No OneTemporary

D12124.diff

diff --git a/native/account/registration/connect-farcaster.react.js b/native/account/registration/connect-farcaster.react.js
--- a/native/account/registration/connect-farcaster.react.js
+++ b/native/account/registration/connect-farcaster.react.js
@@ -2,7 +2,6 @@
import invariant from 'invariant';
import * as React from 'react';
-import { Alert } from 'react-native';
import { IdentityClientContext } from 'lib/shared/identity-client-context.js';
import { useIsAppForegrounded } from 'lib/shared/lifecycle-utils.js';
@@ -27,6 +26,7 @@
getFarcasterAccountAlreadyLinkedAlertDetails,
type AlertDetails,
} from '../../utils/alert-messages.js';
+import Alert from '../../utils/alert.js';
import { useStaffCanSee } from '../../utils/staff-utils.js';
export type ConnectFarcasterParams = ?{
diff --git a/native/account/registration/missing-registration-data/missing-siwe-backup-message.react.js b/native/account/registration/missing-registration-data/missing-siwe-backup-message.react.js
--- a/native/account/registration/missing-registration-data/missing-siwe-backup-message.react.js
+++ b/native/account/registration/missing-registration-data/missing-siwe-backup-message.react.js
@@ -2,7 +2,6 @@
import invariant from 'invariant';
import * as React from 'react';
-import { Alert } from 'react-native';
import { SafeAreaView } from 'react-native-safe-area-context';
import { type SIWEResult } from 'lib/types/siwe-types.js';
@@ -13,6 +12,7 @@
import { type NavigationRoute } from '../../../navigation/route-names.js';
import { useSelector } from '../../../redux/redux-utils.js';
import { useStyles } from '../../../themes/colors.js';
+import Alert from '../../../utils/alert.js';
import { CreateSIWEBackupMessageBase } from '../siwe-backup-message-creation.react.js';
type Props = {
diff --git a/native/account/registration/registration-terms.react.js b/native/account/registration/registration-terms.react.js
--- a/native/account/registration/registration-terms.react.js
+++ b/native/account/registration/registration-terms.react.js
@@ -2,7 +2,7 @@
import invariant from 'invariant';
import * as React from 'react';
-import { Text, View, Image, Linking, Alert } from 'react-native';
+import { Text, View, Image, Linking } from 'react-native';
import type { SIWEBackupSecrets } from 'lib/types/siwe-types.js';
@@ -21,6 +21,7 @@
import { logInActionType } from '../../navigation/action-types.js';
import type { NavigationRoute } from '../../navigation/route-names.js';
import { useStyles } from '../../themes/colors.js';
+import Alert from '../../utils/alert.js';
export type RegistrationTermsParams = {
+userSelections: {
diff --git a/native/account/registration/siwe-backup-message-creation.react.js b/native/account/registration/siwe-backup-message-creation.react.js
--- a/native/account/registration/siwe-backup-message-creation.react.js
+++ b/native/account/registration/siwe-backup-message-creation.react.js
@@ -3,7 +3,7 @@
import Icon from '@expo/vector-icons/MaterialIcons.js';
import invariant from 'invariant';
import * as React from 'react';
-import { View, Text, Alert } from 'react-native';
+import { View, Text } from 'react-native';
import { type SIWEResult, SIWEMessageTypes } from 'lib/types/siwe-types.js';
@@ -23,6 +23,7 @@
RegistrationTermsRouteName,
} from '../../navigation/route-names.js';
import { useStyles } from '../../themes/colors.js';
+import Alert from '../../utils/alert.js';
import SIWEPanel from '../siwe-panel.react.js';
type PanelState = 'closed' | 'opening' | 'open' | 'closing';
diff --git a/native/profile/backup-menu.react.js b/native/profile/backup-menu.react.js
--- a/native/profile/backup-menu.react.js
+++ b/native/profile/backup-menu.react.js
@@ -1,7 +1,7 @@
// @flow
import * as React from 'react';
-import { Alert, Switch, Text, View } from 'react-native';
+import { Switch, Text, View } from 'react-native';
import { ScrollView } from 'react-native-gesture-handler';
import { getMessageForException } from 'lib/utils/errors.js';
@@ -14,6 +14,7 @@
import { setLocalSettingsActionType } from '../redux/action-types.js';
import { useSelector } from '../redux/redux-utils.js';
import { useColors, useStyles } from '../themes/colors.js';
+import Alert from '../utils/alert.js';
type Props = {
+navigation: ProfileNavigationProp<'BackupMenu'>,
diff --git a/native/profile/farcaster-account-settings.react.js b/native/profile/farcaster-account-settings.react.js
--- a/native/profile/farcaster-account-settings.react.js
+++ b/native/profile/farcaster-account-settings.react.js
@@ -1,7 +1,7 @@
// @flow
import * as React from 'react';
-import { View, Alert } from 'react-native';
+import { View } from 'react-native';
import { useCurrentUserFID, useUnlinkFID } from 'lib/utils/farcaster-utils.js';
@@ -13,6 +13,7 @@
import type { NavigationRoute } from '../navigation/route-names.js';
import { useStyles } from '../themes/colors.js';
import { unknownErrorAlertDetails } from '../utils/alert-messages.js';
+import Alert from '../utils/alert.js';
import { useTryLinkFID } from '../utils/farcaster-utils.js';
type Props = {
diff --git a/native/redux/redux-debug-utils.js b/native/redux/redux-debug-utils.js
--- a/native/redux/redux-debug-utils.js
+++ b/native/redux/redux-debug-utils.js
@@ -1,6 +1,6 @@
// @flow
-import { Alert } from 'react-native';
+import Alert from '../utils/alert.js';
function onStateDifference(message: string) {
Alert.alert('State difference found', message);
diff --git a/native/utils/farcaster-utils.js b/native/utils/farcaster-utils.js
--- a/native/utils/farcaster-utils.js
+++ b/native/utils/farcaster-utils.js
@@ -1,7 +1,6 @@
// @flow
import * as React from 'react';
-import { Alert } from 'react-native';
import { getMessageForException } from 'lib/utils/errors.js';
import { useLinkFID } from 'lib/utils/farcaster-utils.js';
@@ -10,6 +9,7 @@
getFarcasterAccountAlreadyLinkedAlertDetails,
unknownErrorAlertDetails,
} from './alert-messages.js';
+import Alert from '../utils/alert.js';
function useTryLinkFID(): (newFID: string) => Promise<void> {
const linkFID = useLinkFID();

File Metadata

Mime Type
text/plain
Expires
Tue, Dec 3, 2:11 AM (21 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2609774
Default Alt Text
D12124.diff (6 KB)

Event Timeline