Client: minor refactor (user)

This commit is contained in:
Sam
2018-04-29 17:02:08 +02:00
parent cd90c802b5
commit 1c570ab320
5 changed files with 21 additions and 16 deletions

View File

@ -2,7 +2,7 @@ import React from 'react'
import { connect } from 'react-redux'
import { Link } from 'react-router-dom'
import mpwoApi from '../../mpwoApi'
import { apiUrl } from '../../utils'
function NavBar (props) {
@ -74,7 +74,7 @@ function NavBar (props) {
{props.user.picture === true && (
<img
alt="Profile"
src={`${mpwoApi.getApiUrl()}users/${props.user.id}/picture` +
src={`${apiUrl}users/${props.user.id}/picture` +
`?${Date.now()}`}
className="img-fluid App-nav-profile-img"
/>