diff --git a/src/components/Main.tsx b/src/components/Main.tsx
index 19041f68611..423cf2f9d71 100644
--- a/src/components/Main.tsx
+++ b/src/components/Main.tsx
@@ -1,6 +1,5 @@
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs'
import { createDrawerNavigator } from '@react-navigation/drawer'
-import { HeaderTitleProps } from '@react-navigation/elements'
import { DefaultTheme, NavigationContainer, useNavigation } from '@react-navigation/native'
import { createStackNavigator, StackNavigationOptions } from '@react-navigation/stack'
import * as React from 'react'
@@ -33,11 +32,10 @@ import { ifLoggedIn } from './hoc/IfLoggedIn'
import { useBackEvent } from './hoc/useBackEvent'
import { BackButton } from './navigation/BackButton'
import { CurrencySettingsTitle } from './navigation/CurrencySettingsTitle'
-import { EdgeLogoHeader } from './navigation/EdgeLogoHeader'
+import { EdgeHeader } from './navigation/EdgeHeader'
import { PluginBackButton } from './navigation/GuiPluginBackButton'
import { HeaderBackground } from './navigation/HeaderBackground'
import { HeaderTextButton } from './navigation/HeaderTextButton'
-import { HeaderTitle } from './navigation/HeaderTitle'
import { ParamHeaderTitle } from './navigation/ParamHeaderTitle'
import { SideMenuButton } from './navigation/SideMenuButton'
import { TransactionDetailsTitle } from './navigation/TransactionDetailsTitle'
@@ -215,7 +213,7 @@ const headerMode = isMaestro() && Platform.OS === 'android' ? 'float' : undefine
const defaultScreenOptions: StackNavigationOptions = {
title: '',
- headerTitle: ({ children }: HeaderTitleProps) => ,
+ headerTitle: EdgeHeader,
headerLeft: () => ,
headerRight: () => ,
headerShown: true,
@@ -226,7 +224,7 @@ const defaultScreenOptions: StackNavigationOptions = {
}
const firstSceneScreenOptions: StackNavigationOptions = {
headerLeft: () => ,
- headerTitle: EdgeLogoHeader,
+ headerTitle: EdgeHeader,
headerTitleAlign: 'center'
}
@@ -359,12 +357,13 @@ const EdgeAppStack = () => {
}}
/>
+ name="coinRanking"
+ component={CoinRankingScene}
+ listeners={{
+ focus: () => dispatch(checkEnabledExchanges())
}}
/>
+
{
component={CreateWalletSelectCryptoScene}
options={{
headerRight: () => null,
- headerTitle: () => ,
headerLeft: () => null
}}
/>
@@ -484,13 +482,7 @@ const EdgeAppStack = () => {
}}
/>
-
- }}
- />
+
{
headerRight: () => null
}}
/>
-
- }}
- />
+
{
headerRight: () => null
}}
/>
-
- }}
- />
-
- }}
- />
-
- }}
- />
-
- }}
- />
-
- }}
- />
-
- }}
- />
+
+
+
+
+
+
{
headerRight: () => null
}}
/>
-
+
{
headerRight: () => null
}}
/>
-
- }}
- />
+
{
-
- }}
- component={FiatPluginWebViewComponent}
- />
-
- }}
- component={RewardsCardDashboardScene}
- />
-
- }}
- component={RewardsCardWelcomeScene}
- />
+
+
+
{
)
}
-
-const EdgeMarketsTabScreen = () => {
- const dispatch = useDispatch()
- return (
-
- dispatch(checkEnabledExchanges())
- }}
- />
-
- }}
- />
-
- )
-}
diff --git a/src/components/navigation/EdgeHeader.tsx b/src/components/navigation/EdgeHeader.tsx
new file mode 100644
index 00000000000..dd76263b217
--- /dev/null
+++ b/src/components/navigation/EdgeHeader.tsx
@@ -0,0 +1,13 @@
+import { HeaderTitleProps } from '@react-navigation/elements'
+import * as React from 'react'
+
+import { EdgeLogoHeader } from './EdgeLogoHeader'
+import { HeaderTitle } from './HeaderTitle'
+
+export function EdgeHeader(props: HeaderTitleProps) {
+ const { children } = props
+
+ if (typeof children === 'string' && children !== '') return
+
+ return
+}
diff --git a/src/components/themed/SideMenu.tsx b/src/components/themed/SideMenu.tsx
index f06e8871bca..09714b6854e 100644
--- a/src/components/themed/SideMenu.tsx
+++ b/src/components/themed/SideMenu.tsx
@@ -142,7 +142,7 @@ export function SideMenuComponent(props: DrawerContentComponentProps) {
}
const handleMarketsPress = () => {
- navigation.navigate('marketsTab', { screen: 'coinRanking' })
+ navigation.navigate('coinRanking', {})
}
const handleShareApp = () => {
diff --git a/src/components/ui4/scenes/HomeSceneUi4.tsx b/src/components/ui4/scenes/HomeSceneUi4.tsx
index f29a5e5bfa4..347966c7d30 100644
--- a/src/components/ui4/scenes/HomeSceneUi4.tsx
+++ b/src/components/ui4/scenes/HomeSceneUi4.tsx
@@ -140,7 +140,7 @@ export const HomeSceneUi4 = (props: Props) => {
>
<>
- navigation.navigate('marketsTab', {})} />
+ navigation.navigate('coinRanking', {})} />
>
{/* TODO: Reimplement after info server is published */}
diff --git a/src/types/routerTypes.tsx b/src/types/routerTypes.tsx
index ba4d45f0f23..a973e57dd9a 100644
--- a/src/types/routerTypes.tsx
+++ b/src/types/routerTypes.tsx
@@ -56,7 +56,6 @@ export interface RouteParamList {
buyTab: {}
sellTab: {}
exchangeTab: {}
- marketsTab: {}
// Gui Plugins
guiPluginEnterAmount: FiatPluginEnterAmountParams