diff --git a/package-lock.json b/package-lock.json index 90c9c82..6de11c3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5512,9 +5512,9 @@ "optional": true }, "fstream": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/fstream/-/fstream-1.0.11.tgz", - "integrity": "sha1-XB+x8RdHcRTwYyoOtLcbPLD9MXE=", + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/fstream/-/fstream-1.0.12.tgz", + "integrity": "sha512-WvJ193OHa0GHPEL+AycEJgxvBEwyfRkN1vhjca23OaPVMCaLCXTd5qAu82AjTcgP1UJmytkOKb63Ypde7raDIg==", "requires": { "graceful-fs": "^4.1.2", "inherits": "~2.0.0", @@ -5710,9 +5710,9 @@ } }, "globule": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/globule/-/globule-1.2.1.tgz", - "integrity": "sha512-g7QtgWF4uYSL5/dn71WxubOrS7JVGCnFPEnoeChJmBnyR9Mw8nGoEwOgJL/RC2Te0WhbsEUCejfH8SZNJ+adYQ==", + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/globule/-/globule-1.3.2.tgz", + "integrity": "sha512-7IDTQTIu2xzXkT+6mlluidnWo+BypnbSoEVVQCGfzqnl5Ik8d3e1d4wycb8Rj9tWW+Z39uPWsdlquqiqPCd/pA==", "requires": { "glob": "~7.1.1", "lodash": "~4.17.10", @@ -6203,9 +6203,9 @@ "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=" }, "in-publish": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/in-publish/-/in-publish-2.0.0.tgz", - "integrity": "sha1-4g/146KvwmkDILbcVSaCqcf631E=" + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/in-publish/-/in-publish-2.0.1.tgz", + "integrity": "sha512-oDM0kUSNFC31ShNxHKUyfZKy8ZeXZBWMjMdZHKLOk13uvT27VTL/QzRGfRUcevJhpkZAvlhPYuXkF7eNWrtyxQ==" }, "indent-string": { "version": "2.1.0", @@ -6296,11 +6296,6 @@ "loose-envify": "^1.0.0" } }, - "invert-kv": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-1.0.0.tgz", - "integrity": "sha1-EEqOSqym09jNFXqO+L+rLXo//bY=" - }, "ip": { "version": "1.1.5", "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.5.tgz", @@ -6419,12 +6414,9 @@ "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=" }, "is-finite": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-finite/-/is-finite-1.0.2.tgz", - "integrity": "sha1-zGZ3aVYCvlUO8R6LSqYwU0K20Ko=", - "requires": { - "number-is-nan": "^1.0.0" - } + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-finite/-/is-finite-1.1.0.tgz", + "integrity": "sha512-cdyMtqX/BOqqNBBiKlIVkytNHm49MtMlYyn1zxzvJKWmFMlGzm+ry5BBfYyeY9YmNKbRSo/o7OX9w9ale0wg3w==" }, "is-fullwidth-code-point": { "version": "2.0.0", @@ -7689,9 +7681,9 @@ } }, "js-base64": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.5.1.tgz", - "integrity": "sha512-M7kLczedRMYX4L8Mdh4MzyAMM9O5osx+4FcOQuTvr3A9F2D9S5JXheN0ewNbrvK2UatkTRhL5ejGmGSjNMiZuw==" + "version": "2.6.4", + "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.6.4.tgz", + "integrity": "sha512-pZe//GGmwJndub7ZghVHz7vjb2LgC1m8B07Au3eYqeqv9emhESByMXxaEgkUkEqJe87oBbSniGYoQNIBklc7IQ==" }, "js-levenshtein": { "version": "1.1.6", @@ -7889,14 +7881,6 @@ "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-1.0.4.tgz", "integrity": "sha1-odePw6UEdMuAhF07O24dpJpEbo4=" }, - "lcid": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz", - "integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=", - "requires": { - "invert-kv": "^1.0.0" - } - }, "left-pad": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/left-pad/-/left-pad-1.3.0.tgz", @@ -8627,9 +8611,9 @@ } }, "node-sass": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/node-sass/-/node-sass-4.12.0.tgz", - "integrity": "sha512-A1Iv4oN+Iel6EPv77/HddXErL2a+gZ4uBeZUy+a8O35CFYTXhgA8MgLCWBtwpGZdCvTvQ9d+bQxX/QC36GDPpQ==", + "version": "4.14.1", + "resolved": "https://registry.npmjs.org/node-sass/-/node-sass-4.14.1.tgz", + "integrity": "sha512-sjCuOlvGyCJS40R8BscF5vhVlQjNN069NtQ1gSxyK1u9iqvn6tf7O1R4GNowVZfiZUCRt5MmMs1xd+4V/7Yr0g==", "requires": { "async-foreach": "^0.1.3", "chalk": "^1.1.1", @@ -8638,14 +8622,14 @@ "get-stdin": "^4.0.1", "glob": "^7.0.3", "in-publish": "^2.0.0", - "lodash": "^4.17.11", + "lodash": "^4.17.15", "meow": "^3.7.0", "mkdirp": "^0.5.1", "nan": "^2.13.2", "node-gyp": "^3.8.0", "npmlog": "^4.0.0", "request": "^2.88.0", - "sass-graph": "^2.2.4", + "sass-graph": "2.2.5", "stdout-stream": "^1.4.0", "true-case-path": "^1.0.2" }, @@ -8676,6 +8660,11 @@ "which": "^1.2.9" } }, + "lodash": { + "version": "4.17.20", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.20.tgz", + "integrity": "sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==" + }, "supports-color": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", @@ -11290,88 +11279,98 @@ } }, "sass-graph": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/sass-graph/-/sass-graph-2.2.4.tgz", - "integrity": "sha1-E/vWPNHK8JCLn9k0dq1DpR0eC0k=", + "version": "2.2.5", + "resolved": "https://registry.npmjs.org/sass-graph/-/sass-graph-2.2.5.tgz", + "integrity": "sha512-VFWDAHOe6mRuT4mZRd4eKE+d8Uedrk6Xnh7Sh9b4NGufQLQjOrvf/MQoOdx+0s92L89FeyUUNfU597j/3uNpag==", "requires": { "glob": "^7.0.0", "lodash": "^4.0.0", "scss-tokenizer": "^0.2.3", - "yargs": "^7.0.0" + "yargs": "^13.3.2" }, "dependencies": { - "camelcase": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz", - "integrity": "sha1-MvxLn82vhF/N9+c7uXysImHwqwo=" + "ansi-regex": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", + "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==" }, "cliui": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz", - "integrity": "sha1-EgYBU3qRbSmUD5NNo7SNWFo5IT0=", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz", + "integrity": "sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==", "requires": { - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1", - "wrap-ansi": "^2.0.0" + "string-width": "^3.1.0", + "strip-ansi": "^5.2.0", + "wrap-ansi": "^5.1.0" } }, - "is-fullwidth-code-point": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", - "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", + "get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==" + }, + "require-main-filename": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", + "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==" + }, + "string-width": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", + "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", "requires": { - "number-is-nan": "^1.0.0" + "emoji-regex": "^7.0.1", + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^5.1.0" } }, - "os-locale": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz", - "integrity": "sha1-IPnxeuKe00XoveWDsT0gCYA8FNk=", + "strip-ansi": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", "requires": { - "lcid": "^1.0.0" + "ansi-regex": "^4.1.0" } }, - "string-width": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", - "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "wrap-ansi": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz", + "integrity": "sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==", "requires": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" + "ansi-styles": "^3.2.0", + "string-width": "^3.0.0", + "strip-ansi": "^5.0.0" } }, - "which-module": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/which-module/-/which-module-1.0.0.tgz", - "integrity": "sha1-u6Y8qGGUiZT/MHc2CJ47lgJsKk8=" + "y18n": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.1.tgz", + "integrity": "sha512-wNcy4NvjMYL8gogWWYAO7ZFWFfHcbdbE57tZO8e4cbpj8tfUcwrwqSl3ad8HxpYWCdXcJUCeKKZS62Av1affwQ==" }, "yargs": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-7.1.0.tgz", - "integrity": "sha1-a6MY6xaWFyf10oT46gA+jWFU0Mg=", + "version": "13.3.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.3.2.tgz", + "integrity": "sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw==", "requires": { - "camelcase": "^3.0.0", - "cliui": "^3.2.0", - "decamelize": "^1.1.1", - "get-caller-file": "^1.0.1", - "os-locale": "^1.4.0", - "read-pkg-up": "^1.0.1", + "cliui": "^5.0.0", + "find-up": "^3.0.0", + "get-caller-file": "^2.0.1", "require-directory": "^2.1.1", - "require-main-filename": "^1.0.1", + "require-main-filename": "^2.0.0", "set-blocking": "^2.0.0", - "string-width": "^1.0.2", - "which-module": "^1.0.0", - "y18n": "^3.2.1", - "yargs-parser": "^5.0.0" + "string-width": "^3.0.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^13.1.2" } }, "yargs-parser": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-5.0.0.tgz", - "integrity": "sha1-J17PDX/+Bcd+ZOfIbkzZS/DhIoo=", + "version": "13.1.2", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.2.tgz", + "integrity": "sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg==", "requires": { - "camelcase": "^3.0.0" + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" } } } @@ -12336,12 +12335,12 @@ "integrity": "sha512-4WK/bYZmj8xLr+HUCODHGF1ZFzsYffasLUgEiMBY4fgtltdO6B4WJtlSbPaDTLpYTcGVwM2qLnFTICEcNxs3kA==" }, "tar": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/tar/-/tar-2.2.1.tgz", - "integrity": "sha1-jk0qJWwOIYXGsYrWlK7JaLg8sdE=", + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/tar/-/tar-2.2.2.tgz", + "integrity": "sha512-FCEhQ/4rE1zYv9rYXJw/msRqsnmlje5jHP6huWeBZ704jUTy02c5AZyWujpMR1ax6mVw9NyJMfuK2CMDWVIfgA==", "requires": { "block-stream": "*", - "fstream": "^1.0.2", + "fstream": "^1.0.12", "inherits": "2" } }, diff --git a/package.json b/package.json index d5924f4..de71b2a 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "dependencies": { "axios": "^0.18.0", "bootstrap": "^4.3.1", - "node-sass": "^4.12.0", + "node-sass": "^4.14.1", "react": "^16.8.6", "react-bootstrap": "^1.0.0-beta.8", "react-dom": "^16.8.6", diff --git a/src/components/autoComplete/AutoComplete.js b/src/components/autoComplete/AutoComplete.js index 09119be..955e703 100644 --- a/src/components/autoComplete/AutoComplete.js +++ b/src/components/autoComplete/AutoComplete.js @@ -49,7 +49,7 @@ export default class AutoComplete extends Component { onFocus={this.handleFocus} onBlur={this.handleBlur} value={this.state.val} - placeholder="Search" + placeholder="Buscar" />
{ diff --git a/src/components/header/components/Menu.js b/src/components/header/components/Menu.js index 08754e6..027f504 100644 --- a/src/components/header/components/Menu.js +++ b/src/components/header/components/Menu.js @@ -24,14 +24,14 @@ export default function Menu({
)} - {/* all product */} + {/* Todos los productos */}
{ getAllProducts() jumpTo('/dashboard') }} > - All Product + Todos los productos
) diff --git a/src/components/header/components/Search.js b/src/components/header/components/Search.js index 0d7fd22..21776d7 100644 --- a/src/components/header/components/Search.js +++ b/src/components/header/components/Search.js @@ -23,7 +23,7 @@ export default function Search({ search(input_value).then(res => jumpTo('/dashboard')) }} > - Search + Buscar diff --git a/src/components/header/components/UserHeader.js b/src/components/header/components/UserHeader.js index 24ffad0..df5e48f 100644 --- a/src/components/header/components/UserHeader.js +++ b/src/components/header/components/UserHeader.js @@ -13,16 +13,16 @@ export default function UserHeader({ user_token }) { {(user_token && Object.keys(user_token).length > 0) ?
- + - logout + Salir
:
jumpTo('/login')}> - Login + Ingresar
} 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..796d7c5 100644 --- a/src/pages/dashboard/components/Filter.js +++ b/src/pages/dashboard/components/Filter.js @@ -10,9 +10,9 @@ export default class Filter extends Component { constructor(props) { super(props) this.FILTER_CONFIG = { - order: ['Ascending', 'Descending'], - department: ['Men', 'Women'], - price: ['Less Than $29', '$29 - $39', '$39 - $49', '$49 - $89', 'Greater Than $89'] + order: ['Ascendente', 'Descendente'], + 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 @@ -70,14 +70,14 @@ export default class Filter extends Component {
- FILTERS + FILTROS
{/* order */}
- ORDER + ORDEN
{this.FILTER_CONFIG['order'].map(n =>
- 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..aa08101 100644 --- a/src/pages/dashboard/utils/generateFilterString.js +++ b/src/pages/dashboard/utils/generateFilterString.js @@ -17,10 +17,10 @@ export default (state) => { for (const v of state[name]) { temp = v } - if (temp.toUpperCase() === 'ASCENDING') { + if (temp.toUpperCase() === 'ASCENDENTE') { order = 'order=price' } - if (temp.toUpperCase() === 'DESCENDING') { + if (temp.toUpperCase() === 'DESCENDENTE') { order = 'order=-price' } } @@ -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/loginsignin/Login.js b/src/pages/loginsignin/Login.js index 22655cf..cdbb92a 100644 --- a/src/pages/loginsignin/Login.js +++ b/src/pages/loginsignin/Login.js @@ -11,10 +11,12 @@ import { const INPUT_CONFIG = [ { + title: "Correo Electronico", name: "email", validations: [validateExistence, validateEmail] }, { + title: "Contraseña", name: "password", validations: [validateExistence, validateLength(6, 15), validateLowerCase, validateUpperCase] } @@ -25,8 +27,8 @@ export default function Login({ postToken, login_loading, login_error }) {
{ @@ -74,7 +74,7 @@ export default class LoginSignin extends Component { return error }) } - if (this.props.title === 'Signin') { + if (this.props.title === 'Registrarse') { const { fullname, email, password, verifyPassword } = this.inputText this.props.submitAction(fullname, email, password, verifyPassword) .then(res => { @@ -104,7 +104,7 @@ export default class LoginSignin extends Component { footer_content={ } diff --git a/src/pages/loginsignin/Signin.js b/src/pages/loginsignin/Signin.js index 121b810..b70305b 100644 --- a/src/pages/loginsignin/Signin.js +++ b/src/pages/loginsignin/Signin.js @@ -11,18 +11,22 @@ import { const INPUT_CONFIG = [ { + title: "Nombre Completo", name: "fullname", // validations: [validateLength()] }, { + title: "Correo Electronico", name: "email", validations: [validateExistence, validateEmail] }, { + title: "Contraseña", name: "password", validations: [validateExistence, validateLength(6, 15), validateLowerCase, validateUpperCase] }, { + title: "Verificar Contraseña", name: "verifyPassword", validations: [validateExistence, validateLength(6, 15), validateLowerCase, validateUpperCase] }, @@ -34,9 +38,9 @@ export default function Signin({signin,signin_loading,signin_error}) {
{title}
{ - inputs.map(({ name, validations }) => + inputs.map(({ title,name, validations }) =>
- +
-1 ? 'password' : 'text'} name={name} - placeholder={name} + placeholder={title} onBlur={(e) => onBlur(e, validate(validations, e.target.value))} onFocus={onFocus} /> diff --git a/src/pages/loginsignin/utils/validation.js b/src/pages/loginsignin/utils/validation.js index bef6fc9..b05bbb1 100644 --- a/src/pages/loginsignin/utils/validation.js +++ b/src/pages/loginsignin/utils/validation.js @@ -15,28 +15,28 @@ class Validation { export const validateExistence = new Validation( 'input should have value', text => /\S/.test(text), - 'Required' + 'Llene el campo' ) export const validateEmail = new Validation( 'input should be an email', text => !!text.match(/[\w-]+@([\w-]+\.)+[\w-]+/i), - 'invalid email' + 'Correo Electronico' ) export const validateLength = (min_len, max_len) => { const regex = new RegExp(`(?=.{${min_len},${max_len}})`, 'g') return new Validation( 'input should within certain length', text => !!text.match(regex), - `password has to be ${min_len}-${max_len} letter` + `La contraseña debe tener entre ${min_len} y ${max_len} caracteres` ) } export const validateLowerCase = new Validation( 'input should have an uppercase', text => !!text.match(/(?=.*[A-Z])/g), - 'at least one upper case' + 'La contraseña debe tener al menos una mayuscula' ) export const validateUpperCase = new Validation( 'input should have lowercase', text => !!text.match(/(?=.*[a-z])/g), - 'at least one lower case' + 'La contraseña debe tener al menos una minuscula' ) \ No newline at end of file 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: