From 02824c93dff247242e809367c5fb1188e42bc8aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Pailharey?= <rpailharey@grandlyon.com> Date: Tue, 25 Apr 2023 10:18:31 +0200 Subject: [PATCH] fix: export links --- src/components/Routes/Router.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Routes/Router.tsx b/src/components/Routes/Router.tsx index 0155cdde..c48694e5 100644 --- a/src/components/Routes/Router.tsx +++ b/src/components/Routes/Router.tsx @@ -7,7 +7,7 @@ import Newsletter from '../Newsletter/Newsletter' import Popups from '../Popups/Popups' import Prices from '../Prices/Prices' -const links: { [key: string]: { label: string; path: string } } = { +export const links: { [key: string]: { label: string; path: string } } = { newsletter: { label: 'Newsletter', path: '/newsletter', @@ -33,6 +33,7 @@ export const routes = Object.keys(links).map((key) => ({ const Router: React.FC = () => { const { user } = useContext(UserContext) + console.log(user) return ( <Switch> -- GitLab