-
Notifications
You must be signed in to change notification settings - Fork 162
Expand file tree
/
Copy pathHeader.jsx
More file actions
34 lines (28 loc) · 787 Bytes
/
Header.jsx
File metadata and controls
34 lines (28 loc) · 787 Bytes
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
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import Authenticated from './Authenticated.jsx';
import Rss from './Rss.jsx';
class Header extends Component {
constructor(props) {
super(props);
this.state = {user: ''};
props.conf.then(x => this.setState({user: x.user}));
}
render() {
return (
<header className="row align-items-center">
<div className="col-lg-4 d-none d-lg-block logo"></div>
<h1 className="col-lg-4">
<Link to="/">{this.state.user}</Link>
</h1>
<div className="col-lg-2">
<Rss/>
</div>
<div className="col-lg-2">
<Authenticated conf={this.props.conf} />
</div>
</header>
);
}
}
export default Header;