@@ -25,7 +25,6 @@ import { RewardsCardDashboardScene as RewardsCardListSceneComponent } from '../p
25
25
import { RewardsCardWelcomeScene as RewardsCardWelcomeSceneComponent } from '../plugins/gui/scenes/RewardsCardWelcomeScene'
26
26
import { SepaFormScene } from '../plugins/gui/scenes/SepaFormScene'
27
27
import { defaultAccount } from '../reducers/CoreReducer'
28
- import { useFooterAccordionEvents } from '../state/SceneFooterState'
29
28
import { useDispatch , useSelector } from '../types/reactRedux'
30
29
import { AppParamList , NavigationBase } from '../types/routerTypes'
31
30
import { logEvent } from '../util/tracking'
@@ -235,9 +234,6 @@ export const Main = () => {
235
234
const [ legacyLanding , setLegacyLanding ] = React . useState < boolean | undefined > ( isMaestro ( ) ? false : undefined )
236
235
const [ hasInitialScenesLoaded , setHasInitialScenesLoaded ] = React . useState ( false )
237
236
238
- // Register footer accordion events
239
- useFooterAccordionEvents ( )
240
-
241
237
// Match react navigation theme background with the patina theme
242
238
const reactNavigationTheme = React . useMemo ( ( ) => {
243
239
return {
@@ -270,21 +266,25 @@ export const Main = () => {
270
266
'setLegacyLanding'
271
267
)
272
268
273
- return legacyLanding == null ? (
274
- < LoadingSplashScreen />
275
- ) : (
276
- < NavigationContainer theme = { reactNavigationTheme } >
277
- < Stack . Navigator
278
- initialRouteName = { ENV . USE_WELCOME_SCREENS && ! legacyLanding ? 'gettingStarted' : 'login' }
279
- screenOptions = { {
280
- headerShown : false
281
- } }
282
- >
283
- < Stack . Screen name = "edgeApp" component = { EdgeApp } />
284
- < Stack . Screen name = "gettingStarted" component = { GettingStartedScene } />
285
- < Stack . Screen name = "login" component = { LoginScene } options = { { animationEnabled : hasInitialScenesLoaded } } />
286
- </ Stack . Navigator >
287
- </ NavigationContainer >
269
+ return (
270
+ < >
271
+ { legacyLanding == null ? (
272
+ < LoadingSplashScreen />
273
+ ) : (
274
+ < NavigationContainer theme = { reactNavigationTheme } >
275
+ < Stack . Navigator
276
+ initialRouteName = { ENV . USE_WELCOME_SCREENS && ! legacyLanding ? 'gettingStarted' : 'login' }
277
+ screenOptions = { {
278
+ headerShown : false
279
+ } }
280
+ >
281
+ < Stack . Screen name = "edgeApp" component = { EdgeApp } />
282
+ < Stack . Screen name = "gettingStarted" component = { GettingStartedScene } />
283
+ < Stack . Screen name = "login" component = { LoginScene } options = { { animationEnabled : hasInitialScenesLoaded } } />
284
+ </ Stack . Navigator >
285
+ </ NavigationContainer >
286
+ ) }
287
+ </ >
288
288
)
289
289
}
290
290
0 commit comments