We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b221586 commit f72b61bCopy full SHA for f72b61b
server/client/src/components/Header.js
@@ -1,5 +1,6 @@
1
import React, { Component } from 'react';
2
import { connect } from 'react-redux';
3
+import { Link } from 'react-router-dom';
4
5
class Header extends Component {
6
renderContent() {
@@ -17,9 +18,12 @@ class Header extends Component {
17
18
return (
19
<nav>
20
<div className="nav-wrapper">
- <a className="left brand-logo">
21
+ <Link
22
+ to={this.props.auth ? '/surveys' : '/'}
23
+ className="left brand-logo"
24
+ >
25
Emaily
- </a>
26
+ </Link>
27
<ul className="right">
28
{this.renderContent()}
29
</ul>
0 commit comments