fleet/frontend/components/side_panels/SiteNavHeader/SiteNavHeader.jsx
Gabe Hernandez efb35b537a
add prettier and have it format all fleet application code (#625)
* 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
2021-04-12 14:32:25 +01:00

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;