-
-
Notifications
You must be signed in to change notification settings - Fork 184
Expand file tree
/
Copy pathDefaultHeader.js
More file actions
50 lines (39 loc) · 1.58 KB
/
DefaultHeader.js
File metadata and controls
50 lines (39 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import React, {Component} from 'react';
import {NavLink} from 'react-router-dom';
import {Nav, NavItem} from 'reactstrap';
import PropTypes from 'prop-types';
import {AppNavbarBrand, AppSidebarToggler} from '@coreui/react';
import logo from '../../assets/img/brand/logo.png'
import favicon from '../../assets/img/brand/favicon.png'
import BackendStatusCard from "../../views/Base/BackendStatusCard/BackendStatusCard";
const propTypes = {
children: PropTypes.node,
};
const defaultProps = {};
class DefaultHeader extends Component {
render() {
// eslint-disable-next-line
const {children, ...attributes} = this.props;
return (
<React.Fragment>
<AppSidebarToggler className="d-lg-none" display="md" mobile/>
<AppNavbarBrand
full={{src: logo, width: 111, height: 25, alt: 'Rclone Logo'}}
minimized={{src: favicon, width: 30, height: 30, alt: 'Rclone Logo'}}
/>
<AppSidebarToggler className="d-md-down-none" display="lg"/>
<Nav className="d-md-down-none" navbar>
<NavItem className="px-3">
<NavLink to="/dashboard" className="nav-link">Dashboard</NavLink>
</NavItem>
</Nav>
<Nav className="ml-auto mr-4" navbar>
<BackendStatusCard mode={"button"}/>
</Nav>
</React.Fragment>
);
}
}
DefaultHeader.propTypes = propTypes;
DefaultHeader.defaultProps = defaultProps;
export default DefaultHeader;