Skip to content

Commit 9186a49

Browse files
committed
explore page featured checkins works
1 parent 5438ec2 commit 9186a49

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

pages/dev/test-site/explore/+Page.client.ts

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,6 @@ function FeatureDetails() {
141141
result = getCheckins(bounds.getSouth(), bounds.getNorth(), bounds.getEast(), bounds.getWest());
142142
}
143143

144-
145-
146144
if (result == null) return h(Spinner);
147145
result = result.success.data;
148146

@@ -184,7 +182,6 @@ function FeatureDetails() {
184182

185183

186184
return h("div", {className: 'checkin-container'}, [
187-
h("h3", "Featured Checkins"),
188185
h('div', checkins)
189186
]);
190187
}
@@ -197,13 +194,6 @@ function WeaverMap({
197194
children?: React.ReactNode;
198195
mapboxToken?: string;
199196
}) {
200-
/* We apply a custom style to the panel container when we are interacting
201-
with the search bar, so that we can block map interactions until search
202-
bar focus is lost.
203-
We also apply a custom style when the infodrawer is open so we can hide
204-
the search bar on mobile platforms
205-
*/
206-
207197
const [isOpen, setOpen] = useState(false);
208198

209199
const [type, setType] = useState(types[0]);
@@ -277,8 +267,6 @@ function WeaverMap({
277267
}
278268
}
279269

280-
281-
282270
let featuredCheckin = h(FeatureDetails);
283271

284272
let overlay = h("div.overlay-div", [
@@ -312,11 +300,12 @@ function WeaverMap({
312300
setPosition: onSelectPosition,
313301
}),
314302
]),
303+
// The Overlay Div
304+
overlay,
315305
]
316306
),
317307

318-
// The Overlay Div
319-
overlay,
308+
320309
]
321310
);
322311

@@ -343,4 +332,4 @@ function useMapStyle(type, mapboxToken) {
343332
});
344333

345334
return actualStyle;
346-
}
335+
}

0 commit comments

Comments
 (0)