diff --git a/messages/en.json b/messages/en.json index 7cb3f521e..f242b7401 100644 --- a/messages/en.json +++ b/messages/en.json @@ -713,6 +713,9 @@ "sharedComponents.ProjectInviteBottomSheet.goToMap": { "message": "Go To Map" }, + "sharedComponents.ProjectInviteBottomSheet.goToSync": { + "message": "Go To Sync" + }, "sharedComponents.ProjectInviteBottomSheet.invitedToJoin": { "message": "You've been invited to join {projName}" }, diff --git a/src/frontend/screens/Settings/CreateOrJoinProject/CreateProject/ProjectCreated.tsx b/src/frontend/screens/Settings/CreateOrJoinProject/CreateProject/ProjectCreated.tsx index fc35536c3..58b5ff3f0 100644 --- a/src/frontend/screens/Settings/CreateOrJoinProject/CreateProject/ProjectCreated.tsx +++ b/src/frontend/screens/Settings/CreateOrJoinProject/CreateProject/ProjectCreated.tsx @@ -49,6 +49,24 @@ export const ProjectCreated = ({ ); } + //This resets the navigation so the user cannot press back and return to this screen + function handleGoToInviteScreen() { + navigation.dispatch(state => { + const index = state.routes.findIndex(r => r.name === 'Settings'); + const routes = [ + ...state.routes.slice(0, index + 1), + {name: 'YourTeam'}, + {name: 'SelectDevice'}, + ]; + + return CommonActions.reset({ + ...state, + routes, + index: routes.length - 1, + }); + }); + } + return ( @@ -64,7 +82,7 @@ export const ProjectCreated = ({ -