Skip to content
Snippets Groups Projects
Commit a1f9d134 authored by Liliana Sanfilippo's avatar Liliana Sanfilippo
Browse files

new type of navbar

parent 07a9c9e5
No related branches found
No related tags found
No related merge requests found
Pipeline #423635 failed
...@@ -195,7 +195,6 @@ export function HumanPractices() { ...@@ -195,7 +195,6 @@ export function HumanPractices() {
<H3 text="Education and Outreach" id="edu"/> <H3 text="Education and Outreach" id="edu"/>
<> <>
<div> <div>
<H2 id="interviews" text="Interviews Page"/>
{/* <a onClick={() => goToTextsAndOpenCollapsible("symptoms-collapsible", "/description?collapseId=")}> {/* <a onClick={() => goToTextsAndOpenCollapsible("symptoms-collapsible", "/description?collapseId=")}>
Go to Texts and Open Collapsible 1 Go to Texts and Open Collapsible 1
</a> */} </a> */}
......
...@@ -28,7 +28,7 @@ interface Base { ...@@ -28,7 +28,7 @@ interface Base {
class Folder implements Base { class Folder implements Base {
name: string | undefined; name: string | undefined;
folder: Page[] | undefined; folder: Page[] | PageRef[] | undefined;
} }
class Page implements Base { class Page implements Base {
...@@ -40,6 +40,15 @@ class Page implements Base { ...@@ -40,6 +40,15 @@ class Page implements Base {
navlist!: React.FC; navlist!: React.FC;
} }
class PageRef implements Base{
name: string | undefined;
title: string | undefined;
path: string | undefined;
component?: React.FC | undefined;
header?: React.FC;
navlist?: React.FC;
}
const Pages: (Page | Folder)[] = [ const Pages: (Page | Folder)[] = [
{ {
name: "Attributions", name: "Attributions",
...@@ -197,7 +206,7 @@ const Pages: (Page | Folder)[] = [ ...@@ -197,7 +206,7 @@ const Pages: (Page | Folder)[] = [
}, },
]; ];
export const NavPages: (Page | Folder)[] = [ export const NavPages: (Page | PageRef | Folder)[] = [
{ {
name: "Home", name: "Home",
title: "Bielefeld CeBiTec", title: "Bielefeld CeBiTec",
...@@ -327,6 +336,11 @@ export const NavPages: (Page | Folder)[] = [ ...@@ -327,6 +336,11 @@ export const NavPages: (Page | Folder)[] = [
component: HumanPractices, component: HumanPractices,
header: HPH, header: HPH,
navlist: NoSidebar navlist: NoSidebar
},
{
name: "Education and Outreach",
title: "Education and Outreach",
path: "/human-practices?tab=edu"
} }
] ]
}, },
......
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