Mobile map fix when listingId provided in URL

This commit is contained in:
Edin Dazdarevic
2017-04-15 01:30:38 +02:00
parent cfa14ed590
commit 04a4283371
3 changed files with 8 additions and 20 deletions

View File

@@ -36,3 +36,5 @@ export const listingUrl = (id) => {
// TODO: fix this once removing hardcoded values
return `http://localhost:8080/?listingId=${id}`
}
export const isMobile = () => window.matchMedia("(max-width: 768px)").matches