diff --git a/.well-known/apple-app-site-association b/.well-known/apple-app-site-association index 01e316e675d8..c871764117ed 100644 --- a/.well-known/apple-app-site-association +++ b/.well-known/apple-app-site-association @@ -69,8 +69,8 @@ "comment": "Workspace Details" }, { - "/": "/save-the-world/*", - "comment": "Save the World" + "/": "/teachersunite/*", + "comment": "Teachers Unite!" } ] } diff --git a/src/ROUTES.ts b/src/ROUTES.ts index ed4fbb97a41a..aa467ae7e250 100644 --- a/src/ROUTES.ts +++ b/src/ROUTES.ts @@ -135,10 +135,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', diff --git a/src/libs/Navigation/linkingConfig.js b/src/libs/Navigation/linkingConfig.js index ee3054e02f96..89caab4d733f 100644 --- a/src/libs/Navigation/linkingConfig.js +++ b/src/libs/Navigation/linkingConfig.js @@ -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, diff --git a/src/pages/TeachersUnite/ImTeacherPage.js b/src/pages/TeachersUnite/ImTeacherPage.js index f077c7724978..dbeba700d208 100644 --- a/src/pages/TeachersUnite/ImTeacherPage.js +++ b/src/pages/TeachersUnite/ImTeacherPage.js @@ -22,7 +22,7 @@ function ImTeacherPage() { Navigation.goBack(ROUTES.SAVE_THE_WORLD)} + onBackButtonPress={() => Navigation.goBack(ROUTES.TEACHERS_UNITE)} /> Navigation.goBack(ROUTES.SAVE_THE_WORLD)} + onBackButtonPress={() => Navigation.goBack(ROUTES.TEACHERS_UNITE)} />
Navigation.goBack(ROUTES.SAVE_THE_WORLD)} + onBackButtonPress={() => Navigation.goBack(ROUTES.TEACHERS_UNITE)} /> 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'),