From a7cbdd3f48c3dab93e2f15d6f8e19504f742e949 Mon Sep 17 00:00:00 2001 From: 6foot5 <6foot5@gmail.com> Date: Fri, 21 Oct 2022 18:36:03 -0400 Subject: [PATCH] add notes for print layout, remove yarn lockfile --- src/LocationCard.js | 1 - src/LocationStrip.js | 27 +- yarn.lock | 12372 ----------------------------------------- 3 files changed, 26 insertions(+), 12374 deletions(-) delete mode 100644 yarn.lock 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}

+ )} +