diff --git a/native/account/fullscreen-siwe-panel.react.js b/native/account/fullscreen-siwe-panel.react.js --- a/native/account/fullscreen-siwe-panel.react.js +++ b/native/account/fullscreen-siwe-panel.react.js @@ -22,7 +22,7 @@ AccountDoesNotExistRouteName, RegistrationRouteName, } from '../navigation/route-names.js'; -import { UnknownErrorAlertDetails } from '../utils/alert-messages.js'; +import { unknownErrorAlertDetails } from '../utils/alert-messages.js'; import Alert from '../utils/alert.js'; type Props = { @@ -130,8 +130,8 @@ } } catch (e) { Alert.alert( - UnknownErrorAlertDetails.title, - UnknownErrorAlertDetails.message, + unknownErrorAlertDetails.title, + unknownErrorAlertDetails.message, [{ text: 'OK', onPress: goBackToPrompt }], { cancelable: false }, ); @@ -151,8 +151,8 @@ return; } Alert.alert( - UnknownErrorAlertDetails.title, - UnknownErrorAlertDetails.message, + unknownErrorAlertDetails.title, + unknownErrorAlertDetails.message, [{ text: 'OK', onPress: goBackToPrompt }], { cancelable: false }, ); diff --git a/native/account/legacy-register-panel.react.js b/native/account/legacy-register-panel.react.js --- a/native/account/legacy-register-panel.react.js +++ b/native/account/legacy-register-panel.react.js @@ -48,10 +48,10 @@ import { nativeLegacyLogInExtraInfoSelector } from '../selectors/account-selectors.js'; import type { KeyPressEvent } from '../types/react-native.js'; import { - AppOutOfDateAlertDetails, - UsernameReservedAlertDetails, - UsernameTakenAlertDetails, - UnknownErrorAlertDetails, + appOutOfDateAlertDetails, + usernameReservedAlertDetails, + usernameTakenAlertDetails, + unknownErrorAlertDetails, } from '../utils/alert-messages.js'; import Alert from '../utils/alert.js'; import { type StateContainer } from '../utils/state-container.js'; @@ -378,29 +378,29 @@ } catch (e) { if (e.message === 'username_reserved') { Alert.alert( - UsernameReservedAlertDetails.title, - UsernameReservedAlertDetails.message, + usernameReservedAlertDetails.title, + usernameReservedAlertDetails.message, [{ text: 'OK', onPress: this.onUsernameAlertAcknowledged }], { cancelable: false }, ); } else if (e.message === 'username_taken') { Alert.alert( - UsernameTakenAlertDetails.title, - UsernameTakenAlertDetails.message, + usernameTakenAlertDetails.title, + usernameTakenAlertDetails.message, [{ text: 'OK', onPress: this.onUsernameAlertAcknowledged }], { cancelable: false }, ); } else if (e.message === 'client_version_unsupported') { Alert.alert( - AppOutOfDateAlertDetails.title, - AppOutOfDateAlertDetails.message, + appOutOfDateAlertDetails.title, + appOutOfDateAlertDetails.message, [{ text: 'OK', onPress: this.onAppOutOfDateAlertAcknowledged }], { cancelable: false }, ); } else { Alert.alert( - UnknownErrorAlertDetails.title, - UnknownErrorAlertDetails.message, + unknownErrorAlertDetails.title, + unknownErrorAlertDetails.message, [{ text: 'OK', onPress: this.onUnknownErrorAlertAcknowledged }], { cancelable: false }, ); diff --git a/native/account/log-in-panel.react.js b/native/account/log-in-panel.react.js --- a/native/account/log-in-panel.react.js +++ b/native/account/log-in-panel.react.js @@ -48,9 +48,9 @@ import { nativeLegacyLogInExtraInfoSelector } from '../selectors/account-selectors.js'; import type { KeyPressEvent } from '../types/react-native.js'; import { - AppOutOfDateAlertDetails, - UnknownErrorAlertDetails, - UserNotFoundAlertDetails, + appOutOfDateAlertDetails, + unknownErrorAlertDetails, + userNotFoundAlertDetails, } from '../utils/alert-messages.js'; import Alert from '../utils/alert.js'; import type { StateContainer } from '../utils/state-container.js'; @@ -297,22 +297,22 @@ } catch (e) { if (e.message === 'invalid_credentials') { Alert.alert( - UserNotFoundAlertDetails.title, - UserNotFoundAlertDetails.message, + userNotFoundAlertDetails.title, + userNotFoundAlertDetails.message, [{ text: 'OK', onPress: this.onUnsuccessfulLoginAlertAckowledged }], { cancelable: false }, ); } else if (e.message === 'client_version_unsupported') { Alert.alert( - AppOutOfDateAlertDetails.title, - AppOutOfDateAlertDetails.message, + appOutOfDateAlertDetails.title, + appOutOfDateAlertDetails.message, [{ text: 'OK', onPress: this.onAppOutOfDateAlertAcknowledged }], { cancelable: false }, ); } else { Alert.alert( - UnknownErrorAlertDetails.title, - UnknownErrorAlertDetails.message, + unknownErrorAlertDetails.title, + unknownErrorAlertDetails.message, [{ text: 'OK', onPress: this.onUnknownErrorAlertAcknowledged }], { cancelable: false }, ); @@ -343,22 +343,22 @@ messageForException === 'login failed' ) { Alert.alert( - UserNotFoundAlertDetails.title, - UserNotFoundAlertDetails.message, + userNotFoundAlertDetails.title, + userNotFoundAlertDetails.message, [{ text: 'OK', onPress: this.onUnsuccessfulLoginAlertAckowledged }], { cancelable: false }, ); } else if (messageForException === 'Unsupported version') { Alert.alert( - AppOutOfDateAlertDetails.title, - AppOutOfDateAlertDetails.message, + appOutOfDateAlertDetails.title, + appOutOfDateAlertDetails.message, [{ text: 'OK', onPress: this.onAppOutOfDateAlertAcknowledged }], { cancelable: false }, ); } else { Alert.alert( - UnknownErrorAlertDetails.title, - UnknownErrorAlertDetails.message, + unknownErrorAlertDetails.title, + unknownErrorAlertDetails.message, [{ text: 'OK', onPress: this.onUnknownErrorAlertAcknowledged }], { cancelable: false }, ); diff --git a/native/account/registration/existing-ethereum-account.react.js b/native/account/registration/existing-ethereum-account.react.js --- a/native/account/registration/existing-ethereum-account.react.js +++ b/native/account/registration/existing-ethereum-account.react.js @@ -29,7 +29,7 @@ ScreenParamList, } from '../../navigation/route-names.js'; import { useStyles } from '../../themes/colors.js'; -import { UnknownErrorAlertDetails } from '../../utils/alert-messages.js'; +import { unknownErrorAlertDetails } from '../../utils/alert-messages.js'; import Alert from '../../utils/alert.js'; import { useLegacySIWEServerCall } from '../siwe-hooks.js'; @@ -94,8 +94,8 @@ ); } else { Alert.alert( - UnknownErrorAlertDetails.title, - UnknownErrorAlertDetails.message, + unknownErrorAlertDetails.title, + unknownErrorAlertDetails.message, [{ text: 'OK' }], { cancelable: false, diff --git a/native/account/registration/registration-server-call.js b/native/account/registration/registration-server-call.js --- a/native/account/registration/registration-server-call.js +++ b/native/account/registration/registration-server-call.js @@ -41,10 +41,10 @@ import { useSelector } from '../../redux/redux-utils.js'; import { nativeLegacyLogInExtraInfoSelector } from '../../selectors/account-selectors.js'; import { - AppOutOfDateAlertDetails, - UsernameReservedAlertDetails, - UsernameTakenAlertDetails, - UnknownErrorAlertDetails, + appOutOfDateAlertDetails, + usernameReservedAlertDetails, + usernameTakenAlertDetails, + unknownErrorAlertDetails, } from '../../utils/alert-messages.js'; import Alert from '../../utils/alert.js'; import { defaultURLPrefix } from '../../utils/url-utils.js'; @@ -114,23 +114,23 @@ } catch (e) { if (e.message === 'username reserved') { Alert.alert( - UsernameReservedAlertDetails.title, - UsernameReservedAlertDetails.message, + usernameReservedAlertDetails.title, + usernameReservedAlertDetails.message, ); } else if (e.message === 'username already exists') { Alert.alert( - UsernameTakenAlertDetails.title, - UsernameTakenAlertDetails.message, + usernameTakenAlertDetails.title, + usernameTakenAlertDetails.message, ); } else if (e.message === 'Unsupported version') { Alert.alert( - AppOutOfDateAlertDetails.title, - AppOutOfDateAlertDetails.message, + appOutOfDateAlertDetails.title, + appOutOfDateAlertDetails.message, ); } else { Alert.alert( - UnknownErrorAlertDetails.title, - UnknownErrorAlertDetails.message, + unknownErrorAlertDetails.title, + unknownErrorAlertDetails.message, ); } throw e; @@ -166,23 +166,23 @@ } catch (e) { if (e.message === 'username_reserved') { Alert.alert( - UsernameReservedAlertDetails.title, - UsernameReservedAlertDetails.message, + usernameReservedAlertDetails.title, + usernameReservedAlertDetails.message, ); } else if (e.message === 'username_taken') { Alert.alert( - UsernameTakenAlertDetails.title, - UsernameTakenAlertDetails.message, + usernameTakenAlertDetails.title, + usernameTakenAlertDetails.message, ); } else if (e.message === 'client_version_unsupported') { Alert.alert( - AppOutOfDateAlertDetails.title, - AppOutOfDateAlertDetails.message, + appOutOfDateAlertDetails.title, + appOutOfDateAlertDetails.message, ); } else { Alert.alert( - UnknownErrorAlertDetails.title, - UnknownErrorAlertDetails.message, + unknownErrorAlertDetails.title, + unknownErrorAlertDetails.message, ); } throw e; @@ -243,8 +243,8 @@ }); } catch (e) { Alert.alert( - UnknownErrorAlertDetails.title, - UnknownErrorAlertDetails.message, + unknownErrorAlertDetails.title, + unknownErrorAlertDetails.message, ); throw e; } @@ -262,8 +262,8 @@ onNonceExpired(); } else { Alert.alert( - UnknownErrorAlertDetails.title, - UnknownErrorAlertDetails.message, + unknownErrorAlertDetails.title, + unknownErrorAlertDetails.message, ); } throw e; @@ -383,8 +383,8 @@ try { const deletionResult = await deleteDiscardedIdentityAccount(); Alert.alert( - UnknownErrorAlertDetails.title, - UnknownErrorAlertDetails.message, + unknownErrorAlertDetails.title, + unknownErrorAlertDetails.message, ); return deletionResult; } catch (deleteException) { diff --git a/native/account/siwe-panel.react.js b/native/account/siwe-panel.react.js --- a/native/account/siwe-panel.react.js +++ b/native/account/siwe-panel.react.js @@ -31,7 +31,7 @@ import { useSelector } from '../redux/redux-utils.js'; import type { BottomSheetRef } from '../types/bottom-sheet.js'; import type { WebViewMessageEvent } from '../types/web-view-types.js'; -import { UnknownErrorAlertDetails } from '../utils/alert-messages.js'; +import { unknownErrorAlertDetails } from '../utils/alert-messages.js'; import Alert from '../utils/alert.js'; import { defaultLandingURLPrefix } from '../utils/url-utils.js'; @@ -101,8 +101,8 @@ setNonceInfo({ nonce: response, nonceTimestamp: Date.now() }); } catch (e) { Alert.alert( - UnknownErrorAlertDetails.title, - UnknownErrorAlertDetails.message, + unknownErrorAlertDetails.title, + unknownErrorAlertDetails.message, [ { text: 'OK', diff --git a/native/chat/compose-subchannel.react.js b/native/chat/compose-subchannel.react.js --- a/native/chat/compose-subchannel.react.js +++ b/native/chat/compose-subchannel.react.js @@ -35,7 +35,7 @@ import type { NavigationRoute } from '../navigation/route-names.js'; import { useSelector } from '../redux/redux-utils.js'; import { useStyles } from '../themes/colors.js'; -import { UnknownErrorAlertDetails } from '../utils/alert-messages.js'; +import { unknownErrorAlertDetails } from '../utils/alert-messages.js'; import Alert from '../utils/alert.js'; const TagInput = createTagInput(); @@ -101,8 +101,8 @@ } catch (e) { setCreateButtonEnabled(true); Alert.alert( - UnknownErrorAlertDetails.title, - UnknownErrorAlertDetails.message, + unknownErrorAlertDetails.title, + unknownErrorAlertDetails.message, [{ text: 'OK', onPress: onUnknownErrorAlertAcknowledged }], { cancelable: false }, ); diff --git a/native/chat/relationship-prompt.react.js b/native/chat/relationship-prompt.react.js --- a/native/chat/relationship-prompt.react.js +++ b/native/chat/relationship-prompt.react.js @@ -11,7 +11,7 @@ import Button from '../components/button.react.js'; import { useStyles } from '../themes/colors.js'; -import { UnknownErrorAlertDetails } from '../utils/alert-messages.js'; +import { unknownErrorAlertDetails } from '../utils/alert-messages.js'; import Alert from '../utils/alert.js'; type Props = { @@ -26,8 +26,8 @@ }: Props) { const onErrorCallback = React.useCallback(() => { Alert.alert( - UnknownErrorAlertDetails.title, - UnknownErrorAlertDetails.message, + unknownErrorAlertDetails.title, + unknownErrorAlertDetails.message, [{ text: 'OK' }], ); }, []); diff --git a/native/chat/settings/add-users-modal.react.js b/native/chat/settings/add-users-modal.react.js --- a/native/chat/settings/add-users-modal.react.js +++ b/native/chat/settings/add-users-modal.react.js @@ -28,7 +28,7 @@ import type { NavigationRoute } from '../../navigation/route-names.js'; import { useSelector } from '../../redux/redux-utils.js'; import { useStyles } from '../../themes/colors.js'; -import { UnknownErrorAlertDetails } from '../../utils/alert-messages.js'; +import { unknownErrorAlertDetails } from '../../utils/alert-messages.js'; import Alert from '../../utils/alert.js'; const TagInput = createTagInput(); @@ -84,8 +84,8 @@ return result; } catch (e) { Alert.alert( - UnknownErrorAlertDetails.title, - UnknownErrorAlertDetails.message, + unknownErrorAlertDetails.title, + unknownErrorAlertDetails.message, [{ text: 'OK', onPress: onUnknownErrorAlertAcknowledged }], { cancelable: false }, ); diff --git a/native/chat/settings/color-selector-modal.react.js b/native/chat/settings/color-selector-modal.react.js --- a/native/chat/settings/color-selector-modal.react.js +++ b/native/chat/settings/color-selector-modal.react.js @@ -24,7 +24,7 @@ import type { NavigationRoute } from '../../navigation/route-names.js'; import { useSelector } from '../../redux/redux-utils.js'; import { type Colors, useColors, useStyles } from '../../themes/colors.js'; -import { UnknownErrorAlertDetails } from '../../utils/alert-messages.js'; +import { unknownErrorAlertDetails } from '../../utils/alert-messages.js'; import Alert from '../../utils/alert.js'; export type ColorSelectorModalParams = { @@ -105,8 +105,8 @@ }); } catch (e) { Alert.alert( - UnknownErrorAlertDetails.title, - UnknownErrorAlertDetails.message, + unknownErrorAlertDetails.title, + unknownErrorAlertDetails.message, [{ text: 'OK', onPress: onErrorAcknowledged }], { cancelable: false }, ); diff --git a/native/chat/settings/delete-thread.react.js b/native/chat/settings/delete-thread.react.js --- a/native/chat/settings/delete-thread.react.js +++ b/native/chat/settings/delete-thread.react.js @@ -45,7 +45,7 @@ import type { NavigationRoute } from '../../navigation/route-names.js'; import { useSelector } from '../../redux/redux-utils.js'; import { type Colors, useColors, useStyles } from '../../themes/colors.js'; -import { UnknownErrorAlertDetails } from '../../utils/alert-messages.js'; +import { unknownErrorAlertDetails } from '../../utils/alert-messages.js'; import Alert from '../../utils/alert.js'; import type { ChatNavigationProp } from '../chat.react.js'; @@ -230,8 +230,8 @@ ); } else { Alert.alert( - UnknownErrorAlertDetails.title, - UnknownErrorAlertDetails.message, + unknownErrorAlertDetails.title, + unknownErrorAlertDetails.message, [{ text: 'OK' }], { cancelable: false, diff --git a/native/chat/settings/thread-settings-description.react.js b/native/chat/settings/thread-settings-description.react.js --- a/native/chat/settings/thread-settings-description.react.js +++ b/native/chat/settings/thread-settings-description.react.js @@ -42,7 +42,7 @@ ContentSizeChangeEvent, LayoutEvent, } from '../../types/react-native.js'; -import { UnknownErrorAlertDetails } from '../../utils/alert-messages.js'; +import { unknownErrorAlertDetails } from '../../utils/alert-messages.js'; import Alert from '../../utils/alert.js'; const unboundStyles = { @@ -271,8 +271,8 @@ }); } catch (e) { Alert.alert( - UnknownErrorAlertDetails.title, - UnknownErrorAlertDetails.message, + unknownErrorAlertDetails.title, + unknownErrorAlertDetails.message, [{ text: 'OK', onPress: this.onErrorAcknowledged }], { cancelable: false }, ); diff --git a/native/chat/settings/thread-settings-edit-relationship.react.js b/native/chat/settings/thread-settings-edit-relationship.react.js --- a/native/chat/settings/thread-settings-edit-relationship.react.js +++ b/native/chat/settings/thread-settings-edit-relationship.react.js @@ -26,7 +26,7 @@ import { useSelector } from '../../redux/redux-utils.js'; import { useColors, useStyles } from '../../themes/colors.js'; import type { ViewStyle } from '../../types/styles.js'; -import { UnknownErrorAlertDetails } from '../../utils/alert-messages.js'; +import { unknownErrorAlertDetails } from '../../utils/alert-messages.js'; import Alert from '../../utils/alert.js'; type Props = { @@ -61,8 +61,8 @@ }); } catch (e) { Alert.alert( - UnknownErrorAlertDetails.title, - UnknownErrorAlertDetails.message, + unknownErrorAlertDetails.title, + unknownErrorAlertDetails.message, [{ text: 'OK' }], { cancelable: true, diff --git a/native/chat/settings/thread-settings-leave-thread.react.js b/native/chat/settings/thread-settings-leave-thread.react.js --- a/native/chat/settings/thread-settings-leave-thread.react.js +++ b/native/chat/settings/thread-settings-leave-thread.react.js @@ -29,7 +29,7 @@ import { useSelector } from '../../redux/redux-utils.js'; import { type Colors, useColors, useStyles } from '../../themes/colors.js'; import type { ViewStyle } from '../../types/styles.js'; -import { UnknownErrorAlertDetails } from '../../utils/alert-messages.js'; +import { unknownErrorAlertDetails } from '../../utils/alert-messages.js'; import Alert from '../../utils/alert.js'; const unboundStyles = { @@ -143,8 +143,8 @@ return result; } catch (e) { Alert.alert( - UnknownErrorAlertDetails.title, - UnknownErrorAlertDetails.message, + unknownErrorAlertDetails.title, + unknownErrorAlertDetails.message, undefined, { cancelable: true, diff --git a/native/chat/settings/thread-settings-name.react.js b/native/chat/settings/thread-settings-name.react.js --- a/native/chat/settings/thread-settings-name.react.js +++ b/native/chat/settings/thread-settings-name.react.js @@ -33,7 +33,7 @@ import TextInput from '../../components/text-input.react.js'; import { useSelector } from '../../redux/redux-utils.js'; import { type Colors, useStyles, useColors } from '../../themes/colors.js'; -import { UnknownErrorAlertDetails } from '../../utils/alert-messages.js'; +import { unknownErrorAlertDetails } from '../../utils/alert-messages.js'; import Alert from '../../utils/alert.js'; const unboundStyles = { @@ -199,8 +199,8 @@ }); } catch (e) { Alert.alert( - UnknownErrorAlertDetails.title, - UnknownErrorAlertDetails.message, + unknownErrorAlertDetails.title, + unknownErrorAlertDetails.message, [{ text: 'OK', onPress: this.onErrorAcknowledged }], { cancelable: false }, ); diff --git a/native/chat/settings/thread-settings-promote-sidebar.react.js b/native/chat/settings/thread-settings-promote-sidebar.react.js --- a/native/chat/settings/thread-settings-promote-sidebar.react.js +++ b/native/chat/settings/thread-settings-promote-sidebar.react.js @@ -10,7 +10,7 @@ import Button from '../../components/button.react.js'; import { type Colors, useColors, useStyles } from '../../themes/colors.js'; import type { ViewStyle } from '../../types/styles.js'; -import { UnknownErrorAlertDetails } from '../../utils/alert-messages.js'; +import { unknownErrorAlertDetails } from '../../utils/alert-messages.js'; import Alert from '../../utils/alert.js'; const unboundStyles = { @@ -85,8 +85,8 @@ const onError = () => { Alert.alert( - UnknownErrorAlertDetails.title, - UnknownErrorAlertDetails.message, + unknownErrorAlertDetails.title, + unknownErrorAlertDetails.message, undefined, { cancelable: true, diff --git a/native/components/version-supported.react.js b/native/components/version-supported.react.js --- a/native/components/version-supported.react.js +++ b/native/components/version-supported.react.js @@ -8,7 +8,7 @@ import { commRustModule } from '../native-modules.js'; import { useSelector } from '../redux/redux-utils.js'; -import { AppOutOfDateAlertDetails } from '../utils/alert-messages.js'; +import { appOutOfDateAlertDetails } from '../utils/alert-messages.js'; import Alert from '../utils/alert.js'; function VersionSupportedChecker(): React.Node { @@ -31,8 +31,8 @@ return; } Alert.alert( - AppOutOfDateAlertDetails.title, - AppOutOfDateAlertDetails.message, + appOutOfDateAlertDetails.title, + appOutOfDateAlertDetails.message, [ { text: 'OK', diff --git a/native/profile/default-notifications-preferences.react.js b/native/profile/default-notifications-preferences.react.js --- a/native/profile/default-notifications-preferences.react.js +++ b/native/profile/default-notifications-preferences.react.js @@ -27,7 +27,7 @@ import type { NavigationRoute } from '../navigation/route-names.js'; import { useSelector } from '../redux/redux-utils.js'; import { useStyles } from '../themes/colors.js'; -import { UnknownErrorAlertDetails } from '../utils/alert-messages.js'; +import { unknownErrorAlertDetails } from '../utils/alert-messages.js'; import Alert from '../utils/alert.js'; const CheckIcon = () => ( @@ -111,8 +111,8 @@ }); } catch (e) { Alert.alert( - UnknownErrorAlertDetails.title, - UnknownErrorAlertDetails.message, + unknownErrorAlertDetails.title, + unknownErrorAlertDetails.message, [{ text: 'OK', onPress: () => {} }], { cancelable: false }, ); diff --git a/native/profile/edit-password.react.js b/native/profile/edit-password.react.js --- a/native/profile/edit-password.react.js +++ b/native/profile/edit-password.react.js @@ -31,7 +31,7 @@ import type { NavigationRoute } from '../navigation/route-names.js'; import { useSelector } from '../redux/redux-utils.js'; import { type Colors, useColors, useStyles } from '../themes/colors.js'; -import { UnknownErrorAlertDetails } from '../utils/alert-messages.js'; +import { unknownErrorAlertDetails } from '../utils/alert-messages.js'; import Alert from '../utils/alert.js'; const unboundStyles = { @@ -311,8 +311,8 @@ ); } else { Alert.alert( - UnknownErrorAlertDetails.title, - UnknownErrorAlertDetails.message, + unknownErrorAlertDetails.title, + unknownErrorAlertDetails.message, [{ text: 'OK', onPress: this.onUnknownErrorAlertAcknowledged }], { cancelable: false }, ); 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 @@ -12,7 +12,7 @@ import type { FarcasterWebViewState } from '../components/farcaster-web-view.react.js'; import type { NavigationRoute } from '../navigation/route-names.js'; import { useStyles } from '../themes/colors.js'; -import { UnknownErrorAlertDetails } from '../utils/alert-messages.js'; +import { unknownErrorAlertDetails } from '../utils/alert-messages.js'; import { useTryLinkFID } from '../utils/farcaster-utils.js'; type Props = { @@ -36,8 +36,8 @@ await unlinkFID(); } catch { Alert.alert( - UnknownErrorAlertDetails.title, - UnknownErrorAlertDetails.message, + unknownErrorAlertDetails.title, + unknownErrorAlertDetails.message, ); } finally { setIsLoadingUnlinkFID(false); diff --git a/native/profile/relationship-list-item.react.js b/native/profile/relationship-list-item.react.js --- a/native/profile/relationship-list-item.react.js +++ b/native/profile/relationship-list-item.react.js @@ -50,7 +50,7 @@ import { type Colors, useColors, useStyles } from '../themes/colors.js'; import type { VerticalBounds } from '../types/layout-types.js'; import { useNavigateToUserProfileBottomSheet } from '../user-profile/user-profile-utils.js'; -import { UnknownErrorAlertDetails } from '../utils/alert-messages.js'; +import { unknownErrorAlertDetails } from '../utils/alert-messages.js'; import Alert from '../utils/alert.js'; const unboundStyles = { @@ -312,8 +312,8 @@ }); } catch (e) { Alert.alert( - UnknownErrorAlertDetails.title, - UnknownErrorAlertDetails.message, + unknownErrorAlertDetails.title, + unknownErrorAlertDetails.message, [{ text: 'OK' }], { cancelable: true, diff --git a/native/profile/relationship-list.react.js b/native/profile/relationship-list.react.js --- a/native/profile/relationship-list.react.js +++ b/native/profile/relationship-list.react.js @@ -40,7 +40,7 @@ import { useSelector } from '../redux/redux-utils.js'; import { useStyles, useIndicatorStyle } from '../themes/colors.js'; import type { VerticalBounds } from '../types/layout-types.js'; -import { UnknownErrorAlertDetails } from '../utils/alert-messages.js'; +import { unknownErrorAlertDetails } from '../utils/alert-messages.js'; import Alert from '../utils/alert.js'; const TagInput = createTagInput(); @@ -218,8 +218,8 @@ return result; } catch (e) { Alert.alert( - UnknownErrorAlertDetails.title, - UnknownErrorAlertDetails.message, + unknownErrorAlertDetails.title, + unknownErrorAlertDetails.message, [{ text: 'OK', onPress: onUnknownErrorAlertAcknowledged }], { cancelable: true, onDismiss: onUnknownErrorAlertAcknowledged }, ); diff --git a/native/profile/user-relationship-tooltip-modal.react.js b/native/profile/user-relationship-tooltip-modal.react.js --- a/native/profile/user-relationship-tooltip-modal.react.js +++ b/native/profile/user-relationship-tooltip-modal.react.js @@ -23,7 +23,7 @@ type TooltipRoute, } from '../tooltip/tooltip.react.js'; import type { UserProfileBottomSheetNavigationProp } from '../user-profile/user-profile-bottom-sheet-navigator.react.js'; -import { UnknownErrorAlertDetails } from '../utils/alert-messages.js'; +import { unknownErrorAlertDetails } from '../utils/alert-messages.js'; import Alert from '../utils/alert.js'; type Action = 'unfriend' | 'block' | 'unblock'; @@ -53,8 +53,8 @@ }); } catch (e) { Alert.alert( - UnknownErrorAlertDetails.title, - UnknownErrorAlertDetails.message, + unknownErrorAlertDetails.title, + unknownErrorAlertDetails.message, [{ text: 'OK' }], { cancelable: true, diff --git a/native/redux/redux-setup.js b/native/redux/redux-setup.js --- a/native/redux/redux-setup.js +++ b/native/redux/redux-setup.js @@ -55,7 +55,7 @@ import { getGlobalNavContext } from '../navigation/icky-global.js'; import { activeMessageListSelector } from '../navigation/nav-selectors.js'; import reactotron from '../reactotron.js'; -import { AppOutOfDateAlertDetails } from '../utils/alert-messages.js'; +import { appOutOfDateAlertDetails } from '../utils/alert-messages.js'; import { isStaffRelease } from '../utils/staff-utils.js'; import { getDevServerHostname } from '../utils/url-utils.js'; @@ -331,8 +331,8 @@ } if (payload.error === 'client_version_unsupported') { Alert.alert( - AppOutOfDateAlertDetails.title, - AppOutOfDateAlertDetails.message, + appOutOfDateAlertDetails.title, + appOutOfDateAlertDetails.message, [{ text: 'OK' }], { cancelable: true, diff --git a/native/user-profile/user-profile-relationship-button.react.js b/native/user-profile/user-profile-relationship-button.react.js --- a/native/user-profile/user-profile-relationship-button.react.js +++ b/native/user-profile/user-profile-relationship-button.react.js @@ -12,13 +12,13 @@ import { userProfileActionButtonHeight } from './user-profile-constants.js'; import RelationshipButton from '../components/relationship-button.react.js'; import { useStyles } from '../themes/colors.js'; -import { UnknownErrorAlertDetails } from '../utils/alert-messages.js'; +import { unknownErrorAlertDetails } from '../utils/alert-messages.js'; import Alert from '../utils/alert.js'; const onErrorCallback = () => { Alert.alert( - UnknownErrorAlertDetails.title, - UnknownErrorAlertDetails.message, + unknownErrorAlertDetails.title, + unknownErrorAlertDetails.message, [{ text: 'OK' }], ); }; diff --git a/native/utils/alert-messages.js b/native/utils/alert-messages.js --- a/native/utils/alert-messages.js +++ b/native/utils/alert-messages.js @@ -12,31 +12,31 @@ android: 'Play Store', }); -const AppOutOfDateAlertDetails: AlertDetails = { +const appOutOfDateAlertDetails: AlertDetails = { title: 'App out of date', message: 'Your app version is pretty old, and the server doesn’t know how ' + `to speak to it anymore. Please use the ${platformStore} to update!`, }; -const UsernameReservedAlertDetails: AlertDetails = { +const usernameReservedAlertDetails: AlertDetails = { title: 'Username reserved', message: 'This username is currently reserved. Please contact support@' + 'comm.app if you would like to claim this account.', }; -const UsernameTakenAlertDetails: AlertDetails = { +const usernameTakenAlertDetails: AlertDetails = { title: 'Username taken', message: 'An account with that username already exists', }; -const UserNotFoundAlertDetails: AlertDetails = { +const userNotFoundAlertDetails: AlertDetails = { title: 'Incorrect username or password', message: "Either that user doesn't exist, or the password is incorrect", }; -const UnknownErrorAlertDetails: AlertDetails = { +const unknownErrorAlertDetails: AlertDetails = { title: 'Unknown error', message: 'Uhh... try again?', }; @@ -51,10 +51,10 @@ }); export { - AppOutOfDateAlertDetails, - UsernameReservedAlertDetails, - UsernameTakenAlertDetails, - UserNotFoundAlertDetails, - UnknownErrorAlertDetails, + appOutOfDateAlertDetails, + usernameReservedAlertDetails, + usernameTakenAlertDetails, + userNotFoundAlertDetails, + unknownErrorAlertDetails, getFarcasterAccountAlreadyLinkedAlertDetails, }; 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 @@ -8,7 +8,7 @@ import { getFarcasterAccountAlreadyLinkedAlertDetails, - UnknownErrorAlertDetails, + unknownErrorAlertDetails, } from './alert-messages.js'; function useTryLinkFID(): (newFID: string) => Promise { @@ -28,8 +28,8 @@ Alert.alert(title, message); } else { Alert.alert( - UnknownErrorAlertDetails.title, - UnknownErrorAlertDetails.message, + unknownErrorAlertDetails.title, + unknownErrorAlertDetails.message, ); } }