Add price & size to routes

This commit is contained in:
Edin Dazdarevic
2017-04-09 23:57:29 +02:00
parent 4df688ac60
commit 5f4e3a01d3
4 changed files with 61 additions and 11 deletions

View File

@@ -44,10 +44,12 @@ const getInitialState = (url) => {
if (key === "zoom") {
initialState.zoom = parseInt(value);
}
if (["minSize", "maxSize", "minPrice", "maxPrice"].includes(key)) {
initialState[key] = parseFloat(value);
}
}
console.log('initial state dump', initialState);
console.log('initial state ROOMS', initialState.rooms);
return initialState;
}