diff --git a/native/profile/more-header.react.js b/native/profile/profile-header.react.js similarity index 100% rename from native/profile/more-header.react.js rename to native/profile/profile-header.react.js diff --git a/native/profile/profile.react.js b/native/profile/profile.react.js index 6a72a3400..6aee598ed 100644 --- a/native/profile/profile.react.js +++ b/native/profile/profile.react.js @@ -1,141 +1,141 @@ // @flow import { createStackNavigator, type StackNavigationProp, type StackHeaderProps, } from '@react-navigation/stack'; import * as React from 'react'; import { View } from 'react-native'; import KeyboardAvoidingView from '../components/keyboard-avoiding-view.react'; import HeaderBackButton from '../navigation/header-back-button.react'; import { MoreScreenRouteName, EditEmailRouteName, EditPasswordRouteName, DeleteAccountRouteName, BuildInfoRouteName, DevToolsRouteName, AppearancePreferencesRouteName, FriendListRouteName, BlockListRouteName, type ScreenParamList, type MoreParamList, } from '../navigation/route-names'; import { useStyles } from '../themes/colors'; import AppearancePreferences from './appearance-preferences.react'; import BuildInfo from './build-info.react'; import DeleteAccount from './delete-account.react'; import DevTools from './dev-tools.react'; import EditEmail from './edit-email.react'; import EditPassword from './edit-password.react'; -import MoreHeader from './more-header.react'; +import MoreHeader from './profile-header.react'; import MoreScreen from './profile-screen.react'; import RelationshipList from './relationship-list.react'; const header = (props: StackHeaderProps) => ; const headerBackButton = (props) => ; const screenOptions = { header, headerLeft: headerBackButton, }; const moreScreenOptions = { headerTitle: 'More' }; const editEmailOptions = { headerTitle: 'Change email' }; const editPasswordOptions = { headerTitle: 'Change password' }; const deleteAccountOptions = { headerTitle: 'Delete account' }; const buildInfoOptions = { headerTitle: 'Build info' }; const devToolsOptions = { headerTitle: 'Developer tools' }; const appearanceOptions = { headerTitle: 'Appearance' }; const friendListOptions = { headerTitle: 'Friend list', headerBackTitle: 'Back', }; const blockListOptions = { headerTitle: 'Block list', headerBackTitle: 'Back', }; export type MoreNavigationProp< RouteName: $Keys = $Keys, > = StackNavigationProp; const More = createStackNavigator< ScreenParamList, MoreParamList, MoreNavigationProp<>, >(); function MoreComponent() { const styles = useStyles(unboundStyles); return ( ); } const unboundStyles = { keyboardAvoidingView: { flex: 1, }, view: { flex: 1, backgroundColor: 'panelBackground', }, }; export default MoreComponent;