Skip to content
Snippets Groups Projects
Commit 019fb0fa authored by Bjarke Madsen's avatar Bjarke Madsen
Browse files

Update the sidebar to support different sections

parent e4c740a9
No related branches found
No related tags found
1 merge request!28Feature/comp 192 placeholders
...@@ -5,6 +5,7 @@ import PageHeader from "../components/global/PageHeader" ...@@ -5,6 +5,7 @@ import PageHeader from "../components/global/PageHeader"
import SectionLink from "../components/global/SectionLink"; import SectionLink from "../components/global/SectionLink";
import SectionNavigation from "./SectionNavigation"; import SectionNavigation from "./SectionNavigation";
import { Sections } from "../helpers/constants"; import { Sections } from "../helpers/constants";
import PolicySidebar from "./PolicySidebar";
interface inputProps { interface inputProps {
title: string, title: string,
...@@ -16,7 +17,8 @@ interface inputProps { ...@@ -16,7 +17,8 @@ interface inputProps {
function DataPage({ title, filter, children, category }: inputProps): ReactElement { function DataPage({ title, filter, children, category }: inputProps): ReactElement {
return ( return (
<> <>
<OrganizationSidebar /> {category === Sections.Organisation && <OrganizationSidebar />}
{category === Sections.Policy && <PolicySidebar />}
<PageHeader type={'data'} header={'Compendium Data'}> <PageHeader type={'data'} header={'Compendium Data'}>
<SectionLink section={"Reports"} /> <SectionLink section={"Reports"} />
</PageHeader> </PageHeader>
......
...@@ -50,11 +50,6 @@ const OrganizationSidebar = () => { ...@@ -50,11 +50,6 @@ const OrganizationSidebar = () => {
<span>NREN Involvement in European Commission Projects</span> <span>NREN Involvement in European Commission Projects</span>
</Link> </Link>
</Row> </Row>
<Row>
<Link to="/policy" className="link-text-underline">
<span>NREN Policies</span>
</Link>
</Row>
</Sidebar> </Sidebar>
) )
} }
......
import React from 'react';
import { Link } from 'react-router-dom';
import { Row } from 'react-bootstrap';
import Sidebar from './SideBar';
const PolicySidebar = () => {
return (
<Sidebar>
<h5>Standards and Policies</h5>
<Row>
<Link to="/policy" className="link-text-underline">
<span>NREN Policies</span>
</Link>
</Row>
</Sidebar>
)
}
export default PolicySidebar
\ No newline at end of file
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
border: $yellow-orange 2px solid; border: $yellow-orange 2px solid;
pointer-events: auto; pointer-events: auto;
width: 28rem;
a { a {
padding-top: 0.3rem; padding-top: 0.3rem;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment