diff --git a/src/components/Exploration/ExplorationView.tsx b/src/components/Exploration/ExplorationView.tsx index 06f64160ee28e5216b8ab04f1d7a73a2421d55b1..865a07c49ab9930df4d315dde272baa57780c825 100644 --- a/src/components/Exploration/ExplorationView.tsx +++ b/src/components/Exploration/ExplorationView.tsx @@ -4,7 +4,7 @@ import { AppStore } from 'store' import CozyBar from 'components/Header/CozyBar' import Content from 'components/Content/Content' import Header from 'components/Header/Header' -import { UserMissionState } from 'enum/userMission.enum' +import { UserExplorationState } from 'enum/userExploration.enum' import { UserChallenge } from 'models' const ExplorationView: React.FC = () => { @@ -17,11 +17,11 @@ const ExplorationView: React.FC = () => { setHeaderHeight(height) }, []) - const renderMission = (challenge: UserChallenge) => { - switch (challenge.mission.state) { - case UserMissionState.UNLOCKED: + const renderExploration = (challenge: UserChallenge) => { + switch (challenge.exploration.state) { + case UserExplorationState.UNLOCKED: return 'ExplorationOngoing' - case UserMissionState.DONE: + case UserExplorationState.DONE: return 'ExplorationFinished' default: return 'ExplorationOnGoing' @@ -30,14 +30,17 @@ const ExplorationView: React.FC = () => { return ( <> - <CozyBar titleKey={'COMMON.APP_QUIZ_TITLE'} displayBackArrow={true} /> + <CozyBar + titleKey={'COMMON.APP_EXPLORATION_TITLE'} + displayBackArrow={true} + /> <Header setHeaderHeight={defineHeaderHeight} - desktopTitleKey={'COMMON.APP_QUIZ_TITLE'} + desktopTitleKey={'COMMON.APP_EXPLORATION_TITLE'} displayBackArrow={true} ></Header> <Content height={headerHeight}> - {currentChallenge && renderMission(currentChallenge)} + {currentChallenge && renderExploration(currentChallenge)} </Content> </> ) diff --git a/src/locales/fr.json b/src/locales/fr.json index 3fc13327bd5220bce668191f991cca97bcff3ef6..a6528287200923b4aa642ef78d194c7da0630ece 100644 --- a/src/locales/fr.json +++ b/src/locales/fr.json @@ -22,6 +22,7 @@ "APP_TITLE": "Ecolyo", "APP_CHALLENGE_TITLE": "Défi", "APP_QUIZ_TITLE": "Quiz", + "APP_EXPLORATION_TITLE": "Exploration", "APP_DUEL_TITLE": "Duel final", "APP_ECO_GESTURE_TITLE": "Ecogestes", "APP_OPTIONS_TITLE": "Options",