Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Commit

Permalink
Add home link to the header tbtc logo in header
Browse files Browse the repository at this point in the history
This allows users to return the back to the homepage from any page in
the flow.

Co-Authored-By: Antonio Salazar Cardozo <[email protected]>
  • Loading branch information
benlongstaff and Shadowfiend committed Sep 30, 2020
1 parent fcafc37 commit ed418f4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/lib/Header.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import React from "react"

import { Link } from "react-router-dom"

import TBTCLogo from "../svgs/TBTCLogo"
import Web3Status from "./Web3Status"

const Header = (props) => (
<header className="nav">
<div className="logo">
<Link className="logo" to="/">
<TBTCLogo width="150" />
</div>
</Link>
{
// TODO: remove when proper CMS is selected
window.location.pathname === "/" ||
Expand Down

0 comments on commit ed418f4

Please sign in to comment.