Skip to content
Snippets Groups Projects
Commit 705e21a5 authored by Marjolaine Bodin's avatar Marjolaine Bodin
Browse files

#115 add route for welcome page

parent 8f9b42ed
No related branches found
No related tags found
1 merge request!125Resolve "DOI home page"
Pipeline #204419 passed
export function WelcomeLandingPage() {
return <p>Welcome</p>;
}
import { DOI_PREFIX_PARAM, DOI_SUFFIX_PARAM } from 'hooks/path';
import { LandingPage } from 'landingPage/LandingPage';
import { WelcomeLandingPage } from 'landingPage/WelcomeLandingPage';
import type { RouteObject } from 'react-router-dom';
import { PageNotFound } from 'routing/PageNotFound';
......@@ -8,10 +9,19 @@ const DOI_ROUTE = {
element: <LandingPage />,
};
const WELCOME_ROUTE = {
path: '',
element: <WelcomeLandingPage />,
};
export const routes: RouteObject[] = [
{
path: '/',
element: <WelcomeLandingPage />,
},
{
path: 'doi',
children: [DOI_ROUTE],
children: [WELCOME_ROUTE, DOI_ROUTE],
},
DOI_ROUTE,
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment