Skip to content

Commit

Permalink
Add robotics-frontend prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
tsundvoll committed Oct 18, 2022
1 parent a589f5c commit 8f2d6be
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const HorisontalContent = styled.div`
export function OngoingMissionCard({ mission }: MissionProps) {
let navigate = useNavigate()
const routeChange = () => {
let path = '/mission/' + mission.id
let path = '/robotics-frontend/mission/' + mission.id
navigate(path)
}
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Icon.add({ more_vertical })
export function UpcomingMissionCard({ mission }: MissionProps) {
let navigate = useNavigate()
const routeChange = () => {
let path = '/mission/' + mission.id
let path = '/robotics-frontend/mission/' + mission.id
navigate(path)
}
var numberOfTasks = 0
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/Pages/FlotillaSite.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ export function FlotillaSite() {
<StyledPages>
<BrowserRouter>
<Routes>
<Route path="/" element={<FrontPage />} />
<Route path="/mission/:missionId" element={<MissionPage />} />
<Route path="/robotics-frontend/" element={<FrontPage />} />
<Route path="/robotics-frontend/mission/:missionId" element={<MissionPage />} />
</Routes>
</BrowserRouter>
</StyledPages>
Expand Down

0 comments on commit 8f2d6be

Please sign in to comment.