Skip to content

Commit

Permalink
infolayout header
Browse files Browse the repository at this point in the history
  • Loading branch information
Nina1o1 committed Oct 31, 2023
1 parent 5cf90f8 commit e88f539
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions front-end/GoodOldMap/src/pages/Error/Error.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import PageLink from "../../components/common/pageLink"
import { useLocation } from "react-router-dom"
const Error = () => {
const location = useLocation();
return(
<>
<h1 className="w-full text-center ">404 Not Found</h1>
<PageLink to="/" value="Go back to main page"/>
<PageLink to="/info" value="test info" from={location.pathname}/>
</>
)
}
Expand Down
7 changes: 7 additions & 0 deletions front-end/GoodOldMap/src/pages/InfoDetail/InfoLayout.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
import { Outlet } from "react-router-dom"
import NavBar from "../../components/common/navBar"
import LeftBtn from "../../components/common/leftBtn"
import RightBtn from "../../components/common/rightBtn"

const InfoLayout = () => {
const handleRightClick = (evt) => {
evt.stopPropagation();
}

return (
<>
<div className="min-h-screen flex flex-col">
Expand Down
2 changes: 2 additions & 0 deletions front-end/GoodOldMap/src/pages/MainMap/MainMap.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { Icon } from 'leaflet';

const MainMap = () => {
const [position, setPosition] = useState([51.505, -0.09])
const [city, setCity] = useState("")

return(
<>
<MapContainer className='mapContainer' center={position} zoom={4} scrollWheelZoom={false}>
Expand Down

0 comments on commit e88f539

Please sign in to comment.