url port removal

This commit is contained in:
GotPPay
2017-11-13 21:06:00 +01:00
parent 02410a8c3c
commit 50b737d5ac
4 changed files with 272 additions and 252 deletions

View File

@@ -1,3 +1,5 @@
import {BASE_URL} from '../../../common/config'
export const formatPrice = p => {
if (isNaN(p)) {
return 'Po dogovoru'
@@ -33,8 +35,7 @@ S poštovanjem
}
export const listingUrl = (id) => {
// TODO: fix this once removing hardcoded values
return `http://138.68.67.31:8080/?listingId=${id}`
return `http://${BASE_URL}/?listingId=${id}`
}
export const isMobile = () => window.matchMedia("(max-width: 768px)").matches