From c1077073065af963e99fceda04dfdb94abe31185 Mon Sep 17 00:00:00 2001 From: cdArmor1996 Date: Mon, 27 Aug 2018 15:40:22 +0200 Subject: [PATCH] #88 trying the link and the title --- src/components/Header.jsx | 16 +--------------- src/components/Sidebar.jsx | 3 +-- src/components/SidebarBuildingDetail.jsx | 12 ++++++++++-- src/components/SidebarSearchResult.jsx | 2 +- 4 files changed, 13 insertions(+), 20 deletions(-) diff --git a/src/components/Header.jsx b/src/components/Header.jsx index ff42c38..6673209 100644 --- a/src/components/Header.jsx +++ b/src/components/Header.jsx @@ -36,21 +36,6 @@ export default class Header extends Component {

; - typeOfBuildingFilter = - - - - - - - ; - - facilitiesFilter = - - - - ; - /** * This array determines which filters are rendered, and consists of the name (shown in the header) and the component which is shown in the modal * @@ -137,6 +122,7 @@ export default class Header extends Component {

vul alstublieft de breedte van uw rolstoel in.

We toon enkel bereikbare locaties voor jou op de kaart.

+ github icon
{this.show()} diff --git a/src/components/SidebarBuildingDetail.jsx b/src/components/SidebarBuildingDetail.jsx index 11e33e4..1275a9f 100644 --- a/src/components/SidebarBuildingDetail.jsx +++ b/src/components/SidebarBuildingDetail.jsx @@ -58,14 +58,22 @@ export default class SidebarBuildingDetail extends Component { } } + titleBuild = () => { + if (this.Building.title.includes("'t")) { + return "Sporthall"; + } else { + return this.Building.title; + } + } + render() { return ( -

{this.Building.title}

+

{this.titleBuild()}

-

{this.Building.description}

+
link to the page {this.showAccessibilityInformation()} diff --git a/src/components/SidebarSearchResult.jsx b/src/components/SidebarSearchResult.jsx index dfc914f..b316285 100644 --- a/src/components/SidebarSearchResult.jsx +++ b/src/components/SidebarSearchResult.jsx @@ -53,7 +53,7 @@ export default class SidebarSearchResult extends React.Component { -

{this.Building.description}

+ link to the page