@@ -21,20 +21,20 @@ import { useReconcileWithStacMetadata } from '$components/exploration/hooks/use-
2121import { ProjectionOptions , TimeDensity } from '$types/veda' ;
2222import { useVedaUI } from '$context/veda-ui-provider' ;
2323
24- const StyledDiv = styled . div `
24+ const StyledContainer = styled . div `
2525 position: relative;
2626 flex-grow: 1;
2727 height: 100vh;
2828 display: flex;
2929` ;
30- const StyledDivTimelineContainer = styled . div < { isCompareMode ?: boolean } > `
30+ const StyledTimelineContainer = styled . div < { isCompareMode ?: boolean } > `
3131 position: absolute;
3232 bottom: 2rem;
3333 left: ${ ( { isCompareMode } ) => ( isCompareMode ? '25%' : '50%' ) } ;
3434 transform: translateX(-50%);
3535 z-index: 10;
3636` ;
37- const StyledDivCompareTimelineContainer = styled . div `
37+ const StyledCompareTimelineContainer = styled . div `
3838 position: absolute;
3939 bottom: 2rem;
4040 left: 75%;
@@ -57,7 +57,7 @@ export default function ExplorationSimpleView(
5757 const [ center ] = useAtom ( centerAtom ) ;
5858 return (
5959 // eslint-disable-next-line react/jsx-pascal-case
60- < ExplorationSimpleView_
60+ < ExplorationSimpleViewContent
6161 datasets = { datasets }
6262 selectedDay = { selectedDay }
6363 setSelectedDay = { setSelectedDay }
@@ -69,7 +69,7 @@ export default function ExplorationSimpleView(
6969 ) ;
7070}
7171
72- interface ExplorationSimpleViewProps_ {
72+ interface ExplorationSimpleViewContentProps {
7373 datasets : TimelineDataset [ ] ;
7474 setSelectedDay : ( x : Date ) => void ;
7575 setSelectedComparedDay : ( x : Date ) => void ;
@@ -100,7 +100,9 @@ const getDataLayer = (
100100 } ;
101101} ;
102102
103- function ExplorationSimpleView_ ( props : ExplorationSimpleViewProps_ ) {
103+ function ExplorationSimpleViewContent (
104+ props : ExplorationSimpleViewContentProps
105+ ) {
104106 const {
105107 datasets,
106108 selectedDay,
@@ -165,7 +167,7 @@ function ExplorationSimpleView_(props: ExplorationSimpleViewProps_) {
165167 } , [ basemapId ] ) ;
166168
167169 return (
168- < StyledDiv >
170+ < StyledContainer >
169171 < MapBlock
170172 baseDataLayer = { baseDataLayer }
171173 compareDataLayer = { compareDataLayer }
@@ -182,7 +184,7 @@ function ExplorationSimpleView_(props: ExplorationSimpleViewProps_) {
182184 navigationControlPosition = 'top-right'
183185 height = '100%'
184186 />
185- < StyledDivTimelineContainer isCompareMode = { ! ! selectedCompareDay } >
187+ < StyledTimelineContainer isCompareMode = { ! ! selectedCompareDay } >
186188 { selectedDay && (
187189 < TimelineSimpleView
188190 label = ''
@@ -197,8 +199,8 @@ function ExplorationSimpleView_(props: ExplorationSimpleViewProps_) {
197199 }
198200 />
199201 ) }
200- </ StyledDivTimelineContainer >
201- < StyledDivCompareTimelineContainer >
202+ </ StyledTimelineContainer >
203+ < StyledCompareTimelineContainer >
202204 { selectedCompareDay && (
203205 < TimelineSimpleView
204206 label = ''
@@ -209,7 +211,7 @@ function ExplorationSimpleView_(props: ExplorationSimpleViewProps_) {
209211 tipContent = 'Date shown on right map'
210212 />
211213 ) }
212- </ StyledDivCompareTimelineContainer >
213- </ StyledDiv >
214+ </ StyledCompareTimelineContainer >
215+ </ StyledContainer >
214216 ) ;
215217}
0 commit comments