mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-23 10:04:18 -08:00
remove controls, add padding, change check
This commit is contained in:
parent
6617a39c27
commit
722e45ce9d
3 changed files with 5 additions and 4 deletions
|
@ -11,7 +11,7 @@ interface ILayoutProps {
|
|||
}
|
||||
|
||||
const Layout = ({children, location}: ILayoutProps) => {
|
||||
const isWidthFullPage = location.pathname.endsWith('/cejst');
|
||||
const isWidthFullPage = location.pathname.match(/cejst\/?/);
|
||||
const conditionalAside = isWidthFullPage ? <></> : <J40Aside/>;
|
||||
const gridCssClass = isWidthFullPage ? ' desktop:grid-col-12' :
|
||||
'desktop:grid-col-9';
|
||||
|
|
|
@ -2,4 +2,5 @@
|
|||
height: 676px;
|
||||
margin-bottom: 29px;
|
||||
max-width: revert;
|
||||
margin-top: 50px;
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import React, {useState} from 'react';
|
||||
import Layout from '../components/layout';
|
||||
import MapWrapper from '../components/map';
|
||||
import MapControls from '../components/mapControls';
|
||||
// import MapControls from '../components/mapControls';
|
||||
import HowYouCanHelp from '../components/HowYouCanHelp';
|
||||
import Feature from 'ol/Feature';
|
||||
import Geometry from 'ol/geom/Geometry';
|
||||
|
@ -13,7 +13,7 @@ interface IMapPageProps {
|
|||
}
|
||||
|
||||
const CEJSTPage = ({location}: IMapPageProps) => {
|
||||
const [features, setFeatures] = useState<Feature<Geometry>[]>([]);
|
||||
const [features] = useState<Feature<Geometry>[]>([]);
|
||||
|
||||
return (
|
||||
<Layout location={location}>
|
||||
|
@ -48,7 +48,7 @@ const CEJSTPage = ({location}: IMapPageProps) => {
|
|||
are investigating on our data roadmap.
|
||||
</p>
|
||||
</Alert>
|
||||
<MapControls setFeatures={setFeatures}/>
|
||||
{/* <MapControls setFeatures={setFeatures}/> */}
|
||||
<MapWrapper features={features} />
|
||||
<HowYouCanHelp />
|
||||
</main>
|
||||
|
|
Loading…
Add table
Reference in a new issue