Skip to content

Commit

Permalink
fix: preheaderLink again (#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
ginifizz committed May 23, 2023
1 parent f16f90b commit 6c5bd08
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/components/PreheaderCon.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
import React from 'react';
import Logo from '@con/images/logo.svg';
import Web from '@con/components/common/Web';
import { useLocation } from '@reach/router';
import Button from './common/Button';

const PreheaderCon: React.ComponentType = () => {
const { href } = useLocation();
const url = new URL(href);

return (
<a href={`${url.origin || process.env.GATSBY_ROOT_URL}/con/2023`} rel="noreferrer">
<a href="/con/2023?y=2023" rel="noreferrer">
<div className="preheader preheader-con" role="button">
<Web className="preheader-con__web con__web" isVisible />
<img src={Logo} alt="Api Platform Conference" height="40" />
Expand Down

0 comments on commit 6c5bd08

Please sign in to comment.