From a7143f631bbd90342b7f796ba45c4b7bfcf1ee29 Mon Sep 17 00:00:00 2001 From: Emily Liu Date: Mon, 7 Dec 2020 01:07:48 -0500 Subject: [PATCH] improved calendar pg --- app/Calendar.js | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/app/Calendar.js b/app/Calendar.js index a07348e..f2ba83a 100644 --- a/app/Calendar.js +++ b/app/Calendar.js @@ -38,16 +38,20 @@ const Event = ({item}) => { <> {item.item.text} Location: {item.item.location} - Date: {`${date[1]}/${date[2]}/${date[0]}`} ) if (itemDate >= today) { return ( setVisible(!visible)} activeOpacity={0.8}> - + + {item.item.title} + + {`${date[1]}/${date[2]}/${date[0]}`} + + {visible?extra:<>} ) @@ -55,9 +59,14 @@ const Event = ({item}) => { else { return ( setVisible(!visible)} activeOpacity={0.8}> - - - {item.item.title} + + + + {item.item.title} + + + {`${date[1]}/${date[2]}/${date[0]}`} + {visible?extra:<>} @@ -109,7 +118,7 @@ class Calendar extends React.Component { colors={['#f99', 'white']} style = {{height: '100%', borderBottomColor:'black', borderBottomWidth:0.5, display: 'flex', justifyContent: 'flex-end', paddingBottom: '2.5%'}} > - Calendar + Calendar Events