mirror of
https://github.com/empayre/fleet.git
synced 2024-11-07 09:18:59 +00:00
efb35b537a
* add prettier and have it format all js code except website: : * trying running prettier check in CI * fix runs on in CI * change CI job name * fix prettier erros and fix CI
37 lines
800 B
JavaScript
37 lines
800 B
JavaScript
import React, { Component } from "react";
|
|
|
|
import configInterface from "interfaces/config";
|
|
import OrgLogoIcon from "components/icons/OrgLogoIcon";
|
|
import userInterface from "interfaces/user";
|
|
|
|
class SiteNavHeader extends Component {
|
|
static propTypes = {
|
|
config: configInterface,
|
|
user: userInterface,
|
|
};
|
|
|
|
render() {
|
|
const {
|
|
config: { org_logo_url: orgLogoURL },
|
|
user,
|
|
} = this.props;
|
|
|
|
const { username } = user;
|
|
|
|
const headerBaseClass = "site-nav-header";
|
|
|
|
return (
|
|
<header className={headerBaseClass}>
|
|
<div className={`${headerBaseClass}__inner`}>
|
|
<OrgLogoIcon
|
|
className={`${headerBaseClass}__logo`}
|
|
src={orgLogoURL}
|
|
/>
|
|
</div>
|
|
</header>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default SiteNavHeader;
|