Skip to content

Commit

Permalink
Add RemoteBanner to cheatcodes
Browse files Browse the repository at this point in the history
  • Loading branch information
cgerrard-pass committed Feb 4, 2025
1 parent 3407dba commit 934c4f8
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 21 deletions.
1 change: 1 addition & 0 deletions src/cheatcodes/pages/CheatcodesMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = [
Expand Down
Original file line number Diff line number Diff line change
@@ -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 (
<CheatcodesTemplateScreen title="RemoteBanner 🆒" flexDirection="column">
<Spacer.Column numberOfSpaces={3} />
<RemoteBanner></RemoteBanner>
</CheatcodesTemplateScreen>
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -137,6 +138,10 @@ const routes: CheatcodesStackRoute[] = [
name: 'CheatcodesScreenNewCaledonia',
component: CheatcodesScreenNewCaledonia,
},
{
name: 'CheatcodesScreenRemoteBanner',
component: CheatcodesScreenRemoteBanner,
},
{
name: 'CheatcodesNavigationErrors',
component: withAsyncErrorBoundary(CheatcodesNavigationErrors),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
},
}
1 change: 1 addition & 0 deletions src/features/navigation/CheatcodesStackNavigator/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export type CheatcodesStackParamList = {
CheatcodesScreenCategoryThematicHomeHeader: undefined
CheatcodesScreenDefaultThematicHomeHeader: undefined
CheatcodesScreenHighlightThematicHomeHeader: undefined
CheatcodesScreenRemoteBanner: undefined
CheatcodesScreenTrustedDeviceInfos: undefined
// Others
CheatcodesScreenDebugInformations: undefined
Expand Down

0 comments on commit 934c4f8

Please sign in to comment.