diff --git a/src/cheatcodes/pages/CheatcodesMenu.tsx b/src/cheatcodes/pages/CheatcodesMenu.tsx index 3872260b8c0..b50f59b5174 100644 --- a/src/cheatcodes/pages/CheatcodesMenu.tsx +++ b/src/cheatcodes/pages/CheatcodesMenu.tsx @@ -54,6 +54,7 @@ export function CheatcodesMenu(): React.JSX.Element { ...cheatcodesNavigationTutorialButtons, ...cheatcodesNavigationForceUpdateButtons, { title: 'Share 🔗', screen: 'CheatcodesNavigationShare', subscreens: [] }, + { title: 'RemoteBanner 🆒', screen: 'CheatcodesScreenRemoteBanner', subscreens: [] }, ] const otherButtons: CheatcodesButtonsWithSubscreensProps[] = [ diff --git a/src/cheatcodes/pages/features/remoteBanner/CheatcodesScreenRemoteBanner.tsx b/src/cheatcodes/pages/features/remoteBanner/CheatcodesScreenRemoteBanner.tsx new file mode 100644 index 00000000000..127a680b322 --- /dev/null +++ b/src/cheatcodes/pages/features/remoteBanner/CheatcodesScreenRemoteBanner.tsx @@ -0,0 +1,14 @@ +import React from 'react' + +import { CheatcodesTemplateScreen } from 'cheatcodes/components/CheatcodesTemplateScreen' +import { RemoteBanner } from 'features/remoteBanner/components/RemoteBanner' +import { Spacer } from 'ui/theme' + +export const CheatcodesScreenRemoteBanner = () => { + return ( + + + + + ) +} diff --git a/src/features/navigation/CheatcodesStackNavigator/CheatcodesStackNavigator.tsx b/src/features/navigation/CheatcodesStackNavigator/CheatcodesStackNavigator.tsx index 2051c0781a5..567e4b562e5 100644 --- a/src/features/navigation/CheatcodesStackNavigator/CheatcodesStackNavigator.tsx +++ b/src/features/navigation/CheatcodesStackNavigator/CheatcodesStackNavigator.tsx @@ -14,6 +14,7 @@ import { CheatcodesNavigationIdentityCheck } from 'cheatcodes/pages/features/ide import { CheatcodesNavigationNewIdentificationFlow } from 'cheatcodes/pages/features/identityCheck/CheatcodesNavigationNewIdentificationFlow' import { CheatcodesNavigationInternal } from 'cheatcodes/pages/features/internal/CheatcodesNavigationInternal' import { CheatcodesNavigationProfile } from 'cheatcodes/pages/features/profile/CheatcodesNavigationProfile' +import { CheatcodesScreenRemoteBanner } from 'cheatcodes/pages/features/remoteBanner/CheatcodesScreenRemoteBanner' import { CheatcodesNavigationShare } from 'cheatcodes/pages/features/share/CheatcodesNavigationShare' import { CheatcodesNavigationSubscription } from 'cheatcodes/pages/features/subscription/CheatcodesNavigationSubscription' import { CheatcodesNavigationTrustedDevice } from 'cheatcodes/pages/features/trustedDevice/CheatcodesNavigationTrustedDevice' @@ -137,6 +138,10 @@ const routes: CheatcodesStackRoute[] = [ name: 'CheatcodesScreenNewCaledonia', component: CheatcodesScreenNewCaledonia, }, + { + name: 'CheatcodesScreenRemoteBanner', + component: CheatcodesScreenRemoteBanner, + }, { name: 'CheatcodesNavigationErrors', component: withAsyncErrorBoundary(CheatcodesNavigationErrors), diff --git a/src/features/navigation/CheatcodesStackNavigator/CheatcodesStackNavigatorConfig.tsx b/src/features/navigation/CheatcodesStackNavigator/CheatcodesStackNavigatorConfig.tsx index d591bb95bb3..e5f8d0b47ec 100644 --- a/src/features/navigation/CheatcodesStackNavigator/CheatcodesStackNavigatorConfig.tsx +++ b/src/features/navigation/CheatcodesStackNavigator/CheatcodesStackNavigatorConfig.tsx @@ -3,35 +3,36 @@ export const cheatcodesStackNavigatorConfig = { initialRouteName: 'cheatcodes', screens: { CheatcodesMenu: 'cheatcodes', - CheatcodesNavigationHome: 'cheatcodes/home', - CheatcodesScreenCategoryThematicHomeHeader: 'cheatcodes/home/category-thematic-home-header', - CheatcodesScreenDefaultThematicHomeHeader: 'cheatcodes/home/default-thematic-home-header', - CheatcodesScreenHighlightThematicHomeHeader: 'cheatcodes/home/highlight-thematic-home-header', - CheatcodesNavigationProfile: 'cheatcodes/profile', + CheatcodesNavigationAccountManagement: 'cheatcodes/other/account-management', CheatcodesNavigationAchievements: 'cheatcodes/achievements', - CheatcodesNavigationShare: 'cheatcodes/share', - CheatcodesNavigationSubscription: 'cheatcodes/subscription', + CheatcodesNavigationBookOffer: 'cheatcodes/book-offer', CheatcodesNavigationCulturalSurvey: 'cheatcodes/cultural-survey', - CheatcodesNavigationTutorial: 'cheatcodes/tutorial', - CheatcodesNavigationOnboarding: 'cheatcodes/tutorial/onboarding', - CheatcodesNavigationProfileTutorial: 'cheatcodes/tutorial/profile-tutorial', - CheatcodesNavigationTrustedDevice: 'cheatcodes/trusted-device', - CheatcodesScreenTrustedDeviceInfos: 'cheatcodes/trusted-device/trusted-device-infos', + CheatcodesNavigationErrors: 'cheatcodes/other/errors', + CheatcodesNavigationForceUpdate: 'cheatcodes/other/force-update', + CheatcodesNavigationHome: 'cheatcodes/home', CheatcodesNavigationIdentityCheck: 'cheatcodes/identity-check', + CheatcodesNavigationInternal: 'cheatcodes/internal', CheatcodesNavigationNewIdentificationFlow: 'cheatcodes/identity-check/new-identification-flow', - CheatcodesNavigationInternal: 'cheatcodes/internal', - CheatcodesNavigationBookOffer: 'cheatcodes/book-offer', + CheatcodesNavigationNotScreensPages: 'cheatcodes/other/not-screens-pages', + CheatcodesNavigationOnboarding: 'cheatcodes/tutorial/onboarding', + CheatcodesNavigationProfile: 'cheatcodes/profile', + CheatcodesNavigationProfileTutorial: 'cheatcodes/tutorial/profile-tutorial', + CheatcodesNavigationShare: 'cheatcodes/share', + CheatcodesNavigationSignUp: 'cheatcodes/other/sign-up', + CheatcodesNavigationSubscription: 'cheatcodes/subscription', + CheatcodesNavigationTrustedDevice: 'cheatcodes/trusted-device', + CheatcodesNavigationTutorial: 'cheatcodes/tutorial', + CheatcodesScreenAccesLibre: 'cheatcodes/other/acces-libre', + CheatcodesScreenCategoryThematicHomeHeader: 'cheatcodes/home/category-thematic-home-header', CheatcodesScreenDebugInformations: 'cheatcodes/other/debug-informations', + CheatcodesScreenDefaultThematicHomeHeader: 'cheatcodes/home/default-thematic-home-header', CheatcodesScreenFeatureFlags: 'cheatcodes/other/feature-flags', - CheatcodesScreenRemoteConfig: 'cheatcodes/other/remote-config', + CheatcodesScreenHighlightThematicHomeHeader: 'cheatcodes/home/highlight-thematic-home-header', CheatcodesScreenNewCaledonia: 'cheatcodes/other/new-caledonia', - CheatcodesNavigationErrors: 'cheatcodes/other/errors', - CheatcodesNavigationNotScreensPages: 'cheatcodes/other/not-screens-pages', - CheatcodesScreenAccesLibre: 'cheatcodes/other/acces-libre', - CheatcodesNavigationSignUp: 'cheatcodes/other/sign-up', - CheatcodesNavigationAccountManagement: 'cheatcodes/other/account-management', - CheatcodesNavigationForceUpdate: 'cheatcodes/other/force-update', + CheatcodesScreenRemoteBanner: 'cheatcodes/remote-banner', + CheatcodesScreenRemoteConfig: 'cheatcodes/other/remote-config', + CheatcodesScreenTrustedDeviceInfos: 'cheatcodes/trusted-device/trusted-device-infos', }, }, } diff --git a/src/features/navigation/CheatcodesStackNavigator/types.ts b/src/features/navigation/CheatcodesStackNavigator/types.ts index 40041a9c965..59fb7af9f83 100644 --- a/src/features/navigation/CheatcodesStackNavigator/types.ts +++ b/src/features/navigation/CheatcodesStackNavigator/types.ts @@ -20,6 +20,7 @@ export type CheatcodesStackParamList = { CheatcodesScreenCategoryThematicHomeHeader: undefined CheatcodesScreenDefaultThematicHomeHeader: undefined CheatcodesScreenHighlightThematicHomeHeader: undefined + CheatcodesScreenRemoteBanner: undefined CheatcodesScreenTrustedDeviceInfos: undefined // Others CheatcodesScreenDebugInformations: undefined