From 1f261eb15f22e0c990ba42449efd6585e35bcb7b Mon Sep 17 00:00:00 2001 From: Linkai Wu Date: Sat, 21 Aug 2021 21:45:20 -0400 Subject: [PATCH] Update individual staff page - add format like SOTW to individual staff pages - add image, phone, and position values on page (waiting for cms update) --- app/Staff.js | 46 ++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 44 insertions(+), 2 deletions(-) diff --git a/app/Staff.js b/app/Staff.js index 9b8b931..426d3ab 100644 --- a/app/Staff.js +++ b/app/Staff.js @@ -35,8 +35,11 @@ const Stack = createStackNavigator(); export const StaffInfo = ({route}) => { const item = route.params; + + console.log(item); + return ( - + /* {item.emails.map(email => @@ -47,7 +50,46 @@ export const StaffInfo = ({route}) => { )} - + */ + + + + + {item.name} + {item.position || ""} + + {item.emails && + + + + + {"Email"} + + + + {item.emails.map(email => + {email} + )} + + + } + + {item.phone && + + + + + {"Phone"} + + + + {item.phone.map(num => + {num} + )} + + + } + ) } function StaffElement (props) {