Skip to content

Commit

Permalink
Merge pull request #26806 from Expensify/marco-changeRoute
Browse files Browse the repository at this point in the history
  • Loading branch information
marcochavezf authored Sep 14, 2023
2 parents 86d37d6 + 10c41da commit 0b8d0af
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .well-known/apple-app-site-association
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@
"comment": "Workspace Details"
},
{
"/": "/save-the-world/*",
"comment": "Save the World"
"/": "/teachersunite/*",
"comment": "Teachers Unite!"
}
]
}
Expand Down
8 changes: 4 additions & 4 deletions src/ROUTES.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@ export default {
FLAG_COMMENT: `flag/:reportID/:reportActionID`,
getFlagCommentRoute: (reportID: string, reportActionID: string) => `flag/${reportID}/${reportActionID}`,
SEARCH: 'search',
SAVE_THE_WORLD: 'save-the-world',
I_KNOW_A_TEACHER: 'save-the-world/i-know-a-teacher',
INTRO_SCHOOL_PRINCIPAL: 'save-the-world/intro-school-principal',
I_AM_A_TEACHER: 'save-the-world/i-am-a-teacher',
TEACHERS_UNITE: 'teachersunite',
I_KNOW_A_TEACHER: 'teachersunite/i-know-a-teacher',
INTRO_SCHOOL_PRINCIPAL: 'teachersunite/intro-school-principal',
I_AM_A_TEACHER: 'teachersunite/i-am-a-teacher',
DETAILS: 'details',
getDetailsRoute: (login: string) => `details?login=${encodeURIComponent(login)}`,
PROFILE: 'a/:accountID',
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Navigation/linkingConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ export default {
},
TeachersUnite: {
screens: {
SaveTheWorld_Root: ROUTES.SAVE_THE_WORLD,
SaveTheWorld_Root: ROUTES.TEACHERS_UNITE,
I_Know_A_Teacher: ROUTES.I_KNOW_A_TEACHER,
Intro_School_Principal: ROUTES.INTRO_SCHOOL_PRINCIPAL,
I_Am_A_Teacher: ROUTES.I_AM_A_TEACHER,
Expand Down
2 changes: 1 addition & 1 deletion src/pages/TeachersUnite/ImTeacherPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function ImTeacherPage() {
<ScreenWrapper>
<HeaderWithBackButton
title={translate('teachersUnitePage.iAmATeacher')}
onBackButtonPress={() => Navigation.goBack(ROUTES.SAVE_THE_WORLD)}
onBackButtonPress={() => Navigation.goBack(ROUTES.TEACHERS_UNITE)}
/>
<BlockingView
shouldShowLink
Expand Down
2 changes: 1 addition & 1 deletion src/pages/TeachersUnite/IntroSchoolPrincipalPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function IntroSchoolPrincipalPage(props) {
<ScreenWrapper includeSafeAreaPaddingBottom={false}>
<HeaderWithBackButton
title={translate('teachersUnitePage.introSchoolPrincipal')}
onBackButtonPress={() => Navigation.goBack(ROUTES.SAVE_THE_WORLD)}
onBackButtonPress={() => Navigation.goBack(ROUTES.TEACHERS_UNITE)}
/>
<Form
enabledWhenOffline
Expand Down
2 changes: 1 addition & 1 deletion src/pages/TeachersUnite/KnowATeacherPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function KnowATeacherPage(props) {
<ScreenWrapper includeSafeAreaPaddingBottom={false}>
<HeaderWithBackButton
title={translate('teachersUnitePage.iKnowATeacher')}
onBackButtonPress={() => Navigation.goBack(ROUTES.SAVE_THE_WORLD)}
onBackButtonPress={() => Navigation.goBack(ROUTES.TEACHERS_UNITE)}
/>
<Form
enabledWhenOffline
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,11 @@ function FloatingActionButtonAndPopover(props) {
text: props.translate('iou.requestMoney'),
onSelected: () => interceptAnonymousUser(() => IOU.startMoneyRequest(CONST.IOU.MONEY_REQUEST_TYPE.REQUEST)),
},
{
icon: Expensicons.Heart,
text: props.translate('sidebarScreen.saveTheWorld'),
onSelected: () => interceptAnonymousUser(() => Navigation.navigate(ROUTES.TEACHERS_UNITE)),
},
{
icon: Expensicons.Receipt,
text: props.translate('iou.splitBill'),
Expand Down

0 comments on commit 0b8d0af

Please sign in to comment.