diff --git a/src/App/routes/index.tsx b/src/App/routes/index.tsx index f0f856f2..2ba87eb8 100644 --- a/src/App/routes/index.tsx +++ b/src/App/routes/index.tsx @@ -214,6 +214,18 @@ const pageNotFound = customWrapRoute({ visibility: 'anything', }, }); +const register = customWrapRoute({ + parent: rootLayout, + path: 'register', + component: { + render: () => import('#views/Register'), + props: {}, + }, + context: { + title: 'Register', + visibility: 'is-not-authenticated', + }, +}); const login = customWrapRoute({ parent: rootLayout, @@ -288,6 +300,7 @@ const wrappedRoutes = { resendValidationEmail, mySubscription, cookiePolicy, + register, historicalAlerts, subscriptionDetail, }; diff --git a/src/components/Navbar/i18n.json b/src/components/Navbar/i18n.json index 117178a3..97ad5041 100644 --- a/src/components/Navbar/i18n.json +++ b/src/components/Navbar/i18n.json @@ -3,6 +3,7 @@ "strings": { "headerLogoAltText": "Alert Hub logo", "appLogin": "Login", + "appRegister":"Register", "appAbout": "About", "appResources": "Resources", "headerMenuHome": "Home", diff --git a/src/components/Navbar/index.tsx b/src/components/Navbar/index.tsx index 06221e83..ca9ac0e5 100644 --- a/src/components/Navbar/index.tsx +++ b/src/components/Navbar/index.tsx @@ -75,7 +75,6 @@ function Navbar(props: Props) { }, }, ); - return (