Skip to content

Commit f72b61b

Browse files
committed
Added link tag
1 parent b221586 commit f72b61b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

server/client/src/components/Header.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React, { Component } from 'react';
22
import { connect } from 'react-redux';
3+
import { Link } from 'react-router-dom';
34

45
class Header extends Component {
56
renderContent() {
@@ -17,9 +18,12 @@ class Header extends Component {
1718
return (
1819
<nav>
1920
<div className="nav-wrapper">
20-
<a className="left brand-logo">
21+
<Link
22+
to={this.props.auth ? '/surveys' : '/'}
23+
className="left brand-logo"
24+
>
2125
Emaily
22-
</a>
26+
</Link>
2327
<ul className="right">
2428
{this.renderContent()}
2529
</ul>

0 commit comments

Comments
 (0)