Fix build error
This commit is contained in:
@@ -10,7 +10,6 @@ let menuClasses =
|
|||||||
|
|
||||||
class Header extends Component {
|
class Header extends Component {
|
||||||
render() {
|
render() {
|
||||||
const isHome = location.pathname === withPrefix('/')
|
|
||||||
return (
|
return (
|
||||||
<header className="bg-saburly-light">
|
<header className="bg-saburly-light">
|
||||||
<nav className="container mx-auto flex items-center justify-between lg:p-6 p-4">
|
<nav className="container mx-auto flex items-center justify-between lg:p-6 p-4">
|
||||||
@@ -30,11 +29,6 @@ class Header extends Component {
|
|||||||
|
|
||||||
<div className="hidden lg:visible w-full block flex-grow lg:flex lg:items-right lg:w-auto justify-end lg:flex-grow">
|
<div className="hidden lg:visible w-full block flex-grow lg:flex lg:items-right lg:w-auto justify-end lg:flex-grow">
|
||||||
<ul className="list-reset font- text-sm">
|
<ul className="list-reset font- text-sm">
|
||||||
{!isHome && (
|
|
||||||
<Link to="/">
|
|
||||||
<li className={menuClasses}>Home</li>
|
|
||||||
</Link>
|
|
||||||
)}
|
|
||||||
<Link to="/services">
|
<Link to="/services">
|
||||||
<li className={menuClasses}>Services</li>
|
<li className={menuClasses}>Services</li>
|
||||||
</Link>
|
</Link>
|
||||||
|
|||||||
Reference in New Issue
Block a user