diff --git a/backend/api/Database/Context/InitDb.cs b/backend/api/Database/Context/InitDb.cs index 97a0a9a99..010081f8f 100644 --- a/backend/api/Database/Context/InitDb.cs +++ b/backend/api/Database/Context/InitDb.cs @@ -165,7 +165,7 @@ private static List GetAreas() Deck = decks[0], Plant = decks[0].Plant, Installation = decks[0].Plant!.Installation, - Name = "AP320", + Name = "testArea", MapMetadata = new MapMetadata(), DefaultLocalizationPose = new DefaultLocalizationPose(), SafePositions = new List(new[] { new SafePosition() }) @@ -177,7 +177,7 @@ private static List GetAreas() Deck = decks[0], Plant = decks[0].Plant, Installation = decks[0].Plant!.Installation, - Name = "AP330", + Name = "testArea2", MapMetadata = new MapMetadata(), DefaultLocalizationPose = new DefaultLocalizationPose(), SafePositions = new List(new[] { new SafePosition() }) @@ -189,7 +189,7 @@ private static List GetAreas() Deck = decks[0], Plant = decks[0].Plant, Installation = decks[0].Plant!.Installation, - Name = "testArea", + Name = "testArea3", MapMetadata = new MapMetadata(), DefaultLocalizationPose = new DefaultLocalizationPose(), SafePositions = new List(new[] { new SafePosition() }) @@ -201,7 +201,7 @@ private static List GetAreas() Deck = decks[1], Plant = decks[1].Plant, Installation = decks[1].Plant.Installation, - Name = "testArea2", + Name = "testArea4", MapMetadata = new MapMetadata(), DefaultLocalizationPose = new DefaultLocalizationPose(), SafePositions = new List(new[] { new SafePosition() }) @@ -213,7 +213,7 @@ private static List GetAreas() Deck = decks[2], Plant = decks[2].Plant, Installation = decks[2].Plant.Installation, - Name = "testArea3", + Name = "testArea5", MapMetadata = new MapMetadata(), DefaultLocalizationPose = new DefaultLocalizationPose(), SafePositions = new List(new[] { new SafePosition() }) @@ -225,7 +225,7 @@ private static List GetAreas() Deck = decks[3], Plant = decks[3].Plant, Installation = decks[3].Plant.Installation, - Name = "testArea4", + Name = "testArea6", MapMetadata = new MapMetadata(), DefaultLocalizationPose = new DefaultLocalizationPose(), SafePositions = new List(new[] { new SafePosition() }) diff --git a/frontend/src/components/Pages/MissionHistoryPage/HistoricMissionCard.tsx b/frontend/src/components/Pages/MissionHistoryPage/HistoricMissionCard.tsx index 641e7af6d..10860accf 100644 --- a/frontend/src/components/Pages/MissionHistoryPage/HistoricMissionCard.tsx +++ b/frontend/src/components/Pages/MissionHistoryPage/HistoricMissionCard.tsx @@ -43,10 +43,6 @@ const MissionEndTimeDisplay = ({ mission }: MissionProps) => { export const HistoricMissionCard = ({ index, mission }: IndexedMissionProps) => { let navigate = useNavigate() - const routeChange = () => { - const path = `${config.FRONTEND_BASE_ROUTE}/mission/${mission.id}` - navigate(path) - } const missionHasFailedTasks = mission.tasks.some( (t) => t.status !== TaskStatus.PartiallySuccessful && t.status !== TaskStatus.Successful @@ -61,10 +57,7 @@ export const HistoricMissionCard = ({ index, mission }: IndexedMissionProps) => - navigate(`${config.FRONTEND_BASE_ROUTE}/mission/${mission.id}`)} - > + navigate(`${config.FRONTEND_BASE_ROUTE}/mission/${mission.id}`)}> {mission.name} diff --git a/frontend/src/utils/InfoText.tsx b/frontend/src/utils/InfoText.tsx index f2c230c22..2e39211ff 100644 --- a/frontend/src/utils/InfoText.tsx +++ b/frontend/src/utils/InfoText.tsx @@ -12,7 +12,7 @@ export const SmallScreenInfoText = () => { const { TranslateText } = useLanguageContext() return ( - + {TranslateText('Small screen info text')} )