Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
185 changes: 92 additions & 93 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/components/autoComplete/AutoComplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default class AutoComplete extends Component {
onFocus={this.handleFocus}
onBlur={this.handleBlur}
value={this.state.val}
placeholder="Search"
placeholder="Buscar"
/>
<div className={styles.sugges_outbox}>
{
Expand Down
4 changes: 2 additions & 2 deletions src/components/header/components/Menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ export default function Menu({
</div>
)}
</div>
{/* all product */}
{/* Todos los productos */}
<div className={styles.tag}
onClick={() => {
getAllProducts()
jumpTo('/dashboard')
}}
>
All Product
Todos los productos
</div>
</div>
)
Expand Down
2 changes: 1 addition & 1 deletion src/components/header/components/Search.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default function Search({
search(input_value).then(res => jumpTo('/dashboard'))
}}
>
Search
Buscar
</button>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions src/components/header/components/UserHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ export default function UserHeader({ user_token }) {
{(user_token && Object.keys(user_token).length > 0)
?
<div className={styles.loggout}>
<NavDropdown title={`hello, ${user_token.user_name}`}>
<NavDropdown title={`Hola ${user_token.user_name}`}>
<NavDropdown.Item onClick={Auth.logout} href='/'>
logout
Salir
</NavDropdown.Item>
</NavDropdown>
</div>
:
<div className={styles.loggout}>
<div className={styles.login} onClick={() => jumpTo('/login')}>
Login
Ingresar
</div>
</div>
}
Expand Down
4 changes: 2 additions & 2 deletions src/modules/serverCall/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading