Commit 3f8317c3 authored by Jure's avatar Jure

fix: import images as best practice

parent c4b59b2d
Pipeline #13136 failed with stages
in 2 minutes and 16 seconds
......@@ -3,6 +3,7 @@ import PropTypes from 'prop-types'
import { withRouter } from 'react-router-dom'
import { compose, withProps } from 'recompose'
import { AppBar, Action } from '@pubsweet/ui'
import logo from './pubsweet.jpg'
const Navigation = ({ logoutUser, currentUser, client }) => {
const links = [
......@@ -13,7 +14,7 @@ const Navigation = ({ logoutUser, currentUser, client }) => {
return (
<div>
<AppBar
brand={<img alt="pubsweet" src="/assets/pubsweet.jpg" />}
brand={<img alt="pubsweet" src={logo} />}
navLinkComponents={links}
onLogoutClick={() => logoutUser(client)}
user={currentUser}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment