Page MenuHomePhabricator

D14051.id46085.diff
No OneTemporary

D14051.id46085.diff

diff --git a/native/account/logged-out-modal.react.js b/native/account/logged-out-modal.react.js
--- a/native/account/logged-out-modal.react.js
+++ b/native/account/logged-out-modal.react.js
@@ -45,7 +45,7 @@
type NavigationRoute,
LoggedOutModalRouteName,
RegistrationRouteName,
- QRCodeSignInNavigatorRouteName,
+ SignInNavigatorRouteName,
} from '../navigation/route-names.js';
import { useSelector } from '../redux/redux-utils.js';
import { derivedDimensionsInfoSelector } from '../selectors/dimensions-selectors.js';
@@ -428,7 +428,7 @@
const { navigate } = props.navigation;
const onPressQRCodeSignIn = React.useCallback(() => {
- navigate(QRCodeSignInNavigatorRouteName);
+ navigate(SignInNavigatorRouteName);
}, [navigate]);
const onPressNewRegister = React.useCallback(() => {
diff --git a/native/navigation/root-navigator.react.js b/native/navigation/root-navigator.react.js
--- a/native/navigation/root-navigator.react.js
+++ b/native/navigation/root-navigator.react.js
@@ -49,7 +49,7 @@
InviteLinkNavigatorRouteName,
CommunityCreationRouteName,
RolesNavigatorRouteName,
- QRCodeSignInNavigatorRouteName,
+ SignInNavigatorRouteName,
UserProfileBottomSheetNavigatorRouteName,
KeyserverSelectionBottomSheetRouteName,
ConnectFarcasterBottomSheetRouteName,
@@ -78,7 +78,7 @@
import CustomServerModal from '../profile/custom-server-modal.react.js';
import KeyserverSelectionBottomSheet from '../profile/keyserver-selection-bottom-sheet.react.js';
import LinkedDevicesBottomSheet from '../profile/linked-devices-bottom-sheet.react.js';
-import QRCodeSignInNavigator from '../qr-code/qr-code-sign-in-navigator.react.js';
+import SignInNavigator from '../qr-code/sign-in-navigator.react.js';
import RolesNavigator from '../roles/roles-navigator.react.js';
import UserProfileBottomSheetNavigator from '../user-profile/user-profile-bottom-sheet-navigator.react.js';
@@ -214,8 +214,8 @@
options={disableGesturesScreenOptions}
/>
<Root.Screen
- name={QRCodeSignInNavigatorRouteName}
- component={QRCodeSignInNavigator}
+ name={SignInNavigatorRouteName}
+ component={SignInNavigator}
options={disableGesturesScreenOptions}
/>
<Root.Screen
diff --git a/native/navigation/route-names.js b/native/navigation/route-names.js
--- a/native/navigation/route-names.js
+++ b/native/navigation/route-names.js
@@ -149,7 +149,7 @@
export const RolesNavigatorRouteName = 'RolesNavigator';
export const CommunityRolesScreenRouteName = 'CommunityRolesScreen';
export const CreateRolesScreenRouteName = 'CreateRolesScreen';
-export const QRCodeSignInNavigatorRouteName = 'QRCodeSignInNavigator';
+export const SignInNavigatorRouteName = 'SignInNavigator';
export const QRCodeScreenRouteName = 'QRCodeScreen';
export const UserProfileBottomSheetNavigatorRouteName =
'UserProfileBottomSheetNavigator';
@@ -193,7 +193,7 @@
+InviteLinkModal: InviteLinkModalParams,
+InviteLinkNavigator: InviteLinksNavigatorParams,
+RolesNavigator: void,
- +QRCodeSignInNavigator: void,
+ +SignInNavigator: void,
+UserProfileBottomSheetNavigator: void,
+TunnelbrokerMenu: void,
+KeyserverSelectionBottomSheet: KeyserverSelectionBottomSheetParams,
@@ -333,7 +333,7 @@
+TagFarcasterChannelByName: TagFarcasterChannelByNameParams,
};
-export type QRCodeSignInParamList = {
+export type SignInParamList = {
+QRCodeScreen: void,
};
@@ -356,7 +356,7 @@
...InviteLinkParamList,
...CommunityCreationParamList,
...RolesParamList,
- ...QRCodeSignInParamList,
+ ...SignInParamList,
...UserProfileBottomSheetParamList,
...TagFarcasterChannelParamList,
};
@@ -367,7 +367,7 @@
export const accountModals = [
LoggedOutModalRouteName,
RegistrationRouteName,
- QRCodeSignInNavigatorRouteName,
+ SignInNavigatorRouteName,
];
export const scrollBlockingModals = [
diff --git a/native/qr-code/qr-code-screen.react.js b/native/qr-code/qr-code-screen.react.js
--- a/native/qr-code/qr-code-screen.react.js
+++ b/native/qr-code/qr-code-screen.react.js
@@ -9,12 +9,12 @@
import { platformToIdentityDeviceType } from 'lib/types/identity-service-types.js';
import { getConfig } from 'lib/utils/config.js';
-import type { QRCodeSignInNavigationProp } from './qr-code-sign-in-navigator.react.js';
+import type { SignInNavigationProp } from './sign-in-navigator.react.js';
import type { NavigationRoute } from '../navigation/route-names.js';
import { useStyles } from '../themes/colors.js';
type QRCodeScreenProps = {
- +navigation: QRCodeSignInNavigationProp<'QRCodeScreen'>,
+ +navigation: SignInNavigationProp<'QRCodeScreen'>,
+route: NavigationRoute<'QRCodeScreen'>,
};
diff --git a/native/qr-code/qr-code-sign-in-navigator.react.js b/native/qr-code/sign-in-navigator.react.js
rename from native/qr-code/qr-code-sign-in-navigator.react.js
rename to native/qr-code/sign-in-navigator.react.js
--- a/native/qr-code/qr-code-sign-in-navigator.react.js
+++ b/native/qr-code/sign-in-navigator.react.js
@@ -12,30 +12,29 @@
import type { RootNavigationProp } from '../navigation/root-navigator.react.js';
import {
type ScreenParamList,
- type QRCodeSignInParamList,
+ type SignInParamList,
QRCodeScreenRouteName,
} from '../navigation/route-names.js';
import { useStyles, useColors } from '../themes/colors.js';
const safeAreaEdges = ['bottom'];
-export type QRCodeSignInNavigationProp<
- RouteName: $Keys<QRCodeSignInParamList>,
-> = StackNavigationProp<ScreenParamList, RouteName>;
+export type SignInNavigationProp<RouteName: $Keys<SignInParamList>> =
+ StackNavigationProp<ScreenParamList, RouteName>;
const QRCodeSignInStack = createStackNavigator<
ScreenParamList,
- QRCodeSignInParamList,
+ SignInParamList,
StackNavigationHelpers<ScreenParamList>,
>();
-type QRCodeSignInNavigatorProps = {
- +navigation: RootNavigationProp<'QRCodeSignInNavigator'>,
+type SignInNavigatorProps = {
+ +navigation: RootNavigationProp<'SignInNavigator'>,
...
};
// eslint-disable-next-line no-unused-vars
-function QRCodeSignInNavigator(props: QRCodeSignInNavigatorProps): React.Node {
+function SignInNavigator(props: SignInNavigatorProps): React.Node {
const styles = useStyles(unboundStyles);
const colors = useColors();
@@ -74,4 +73,4 @@
},
};
-export default QRCodeSignInNavigator;
+export default SignInNavigator;

File Metadata

Mime Type
text/plain
Expires
Wed, Dec 25, 5:24 AM (10 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2701685
Default Alt Text
D14051.id46085.diff (6 KB)

Event Timeline