diff --git a/src/LocationCard.js b/src/LocationCard.js index 4a1d902..a9bf55f 100644 --- a/src/LocationCard.js +++ b/src/LocationCard.js @@ -13,7 +13,6 @@ function LocationCard(props) { } if (props.location.url) { - // console.log(props.location.url.substring(0,4)); let urlPrefix = ''; if (props.location.url.substring(0,4) !== 'http') { urlPrefix += 'https://'; diff --git a/src/LocationStrip.js b/src/LocationStrip.js index 182df36..49b418b 100644 --- a/src/LocationStrip.js +++ b/src/LocationStrip.js @@ -3,14 +3,39 @@ import React from 'react'; function LocationCard(props) { let iconClass = props.location.serviceIcon; + // let headingTextElement; // if (props.context === 'map') { // iconClass += ' service-icon-map'; // } + // if (props.location.url) { + // let urlPrefix = ''; + // if (props.location.url.substring(0,4) !== 'http') { + // urlPrefix += 'https://'; + // } + // headingTextElement = <> + // + // + // {props.location.name} + // + // ; + // } else { + // headingTextElement = props.location.name; + // } + return( -

{props.location.name}

{props.location.type === 'Students' ? 'Student Meals' : props.location.type} + +

{props.location.name}

+

+ + {props.location.type === 'Students' ? 'Student Meals' : props.location.type} +

+ {props.location.notes && ( +

Notes: {props.location.notes}

+ )} +