From a36ada490c824818dbccf70fb36e42e4eb90ddc9 Mon Sep 17 00:00:00 2001 From: ginifizz Date: Tue, 23 May 2023 11:34:52 +0200 Subject: [PATCH] fix: external preheader with real url --- src/components/PreheaderCon.tsx | 31 ++++++++++++++++++------------- src/pages/con/2023/index.tsx | 3 +++ 2 files changed, 21 insertions(+), 13 deletions(-) diff --git a/src/components/PreheaderCon.tsx b/src/components/PreheaderCon.tsx index 4723d847d..34e76db90 100644 --- a/src/components/PreheaderCon.tsx +++ b/src/components/PreheaderCon.tsx @@ -1,22 +1,27 @@ 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 = () => ( - -
- - Api Platform Conference -
-

The conference dedicated to API Platform and its ecosystem

-
- Sep 21, 22 2023 | Lille & online +const PreheaderCon: React.ComponentType = () => { + const { origin } = useLocation(); + + return ( + +
+ + Api Platform Conference +
+

The conference dedicated to API Platform and its ecosystem

+
+ Sep 21, 22 2023 | Lille & online +
+
-
- -); + + ); +}; export default PreheaderCon; diff --git a/src/pages/con/2023/index.tsx b/src/pages/con/2023/index.tsx index 5c91219a8..d8964db57 100644 --- a/src/pages/con/2023/index.tsx +++ b/src/pages/con/2023/index.tsx @@ -20,6 +20,9 @@ const Conf2023: React.ComponentType = () => { {`${TITLE}: meet the best API experts!`} + , + , +