diff --git a/src/modules/serverCall/index.js b/src/modules/serverCall/index.js index 2dc1ef6..ff27361 100644 --- a/src/modules/serverCall/index.js +++ b/src/modules/serverCall/index.js @@ -4,8 +4,8 @@ import axios from 'axios' import qs from 'qs' import paypalConfig from '../../configs/paypalConfig' -const URL = 'https://zack-ecommerce-nodejs.herokuapp.com' -// const URL = 'http://localhost:4000' +//const URL = 'https://zack-ecommerce-nodejs.herokuapp.com' +const URL = 'http://localhost:4000' const serverCall = (config) => { //header authorization diff --git a/src/pages/dashboard/components/Filter.js b/src/pages/dashboard/components/Filter.js index bb3e7c9..fc4fa88 100644 --- a/src/pages/dashboard/components/Filter.js +++ b/src/pages/dashboard/components/Filter.js @@ -11,8 +11,8 @@ export default class Filter extends Component { super(props) this.FILTER_CONFIG = { order: ['Ascending', 'Descending'], - department: ['Men', 'Women'], - price: ['Less Than $29', '$29 - $39', '$39 - $49', '$49 - $89', 'Greater Than $89'] + department: ['Varones', 'Mujeres'], + price: ['Menor que S/.29', 'S/.29 - S/.39', 'S/.39 - S/.49', 'S/.49 - S/.89', 'Mayor que S/.89'] } this.initialState = {} this.state = this.initialState @@ -92,7 +92,7 @@ export default class Filter extends Component { {/* department */}
- DEPARTMENT + DEPARTAMENTO
{this.FILTER_CONFIG['department'].map(n =>
- PRICE + PRECIO
{this.FILTER_CONFIG['price'].map(n =>
- +
{/* filter tags */}
diff --git a/src/pages/dashboard/utils/generateFilterString.js b/src/pages/dashboard/utils/generateFilterString.js index 277aab7..98859a3 100644 --- a/src/pages/dashboard/utils/generateFilterString.js +++ b/src/pages/dashboard/utils/generateFilterString.js @@ -40,10 +40,10 @@ export default (state) => { if (name === 'price') { let _price_str_arr = [] for (let p of state[name]) { - if (p.match(/less/i)) { + if (p.match(/menor/i)) { p = p.replace(/[\D]+/i, '0 - ') } - if (p.match(/greater/i)) { + if (p.match(/mayor/i)) { p = p.replace(/[\D]+/i, '').concat(' - 999') } _price_str_arr = _price_str_arr.concat(p.match(/[\d]+/g)) diff --git a/src/pages/productOverview/ProductOverview.js b/src/pages/productOverview/ProductOverview.js index b4fbdee..a449f78 100644 --- a/src/pages/productOverview/ProductOverview.js +++ b/src/pages/productOverview/ProductOverview.js @@ -85,8 +85,8 @@ export default class ProductOverview extends Component { />
- - + +
diff --git a/src/pages/productOverview/components/Variants.js b/src/pages/productOverview/components/Variants.js index a8cae29..e833859 100644 --- a/src/pages/productOverview/components/Variants.js +++ b/src/pages/productOverview/components/Variants.js @@ -7,7 +7,7 @@ export default function Variants({ color, size, variants, selectedSize, handleCl return (
- COLOUR: + COLOR:
{color} @@ -19,7 +19,7 @@ export default function Variants({ color, size, variants, selectedSize, handleCl
- SIZES: + TALLAS: