fixed staff pg

This commit is contained in:
Emily Liu 2020-12-24 19:25:25 -05:00
parent 45a48f7957
commit 04fb03c8ac

View File

@ -37,15 +37,7 @@ const StaffElement = ({item}) => {
<Text key={email}><Text style={styles.linktext} onPress={()=>Linking.openURL("mailto:"+email)}><Text></Text>{email}</Text></Text> <Text key={email}><Text style={styles.linktext} onPress={()=>Linking.openURL("mailto:"+email)}><Text></Text>{email}</Text></Text>
</View> </View>
</View> </View>
)), ))
<View style={{display: 'flex', flexDirection: 'row', alignItems: 'center', marginTop: '2%', paddingHorizontal: '1%'}}>
<View style={{width: '10%', display: 'flex', justifyContent: 'center'}}>
<Image source = {require('./assets/dep.png')} style={{height: 22, width: 22}}/>
</View>
<View style={{width: '90%'}}>
<Text>{item.item.department}</Text>
</View>
</View>
] ]
) )
//const extra = [...item.item.emails.map(email=>(<Text key={email}>{'\n'}Email: <Text style={styles.linktext} onPress={()=>Linking.openURL("mailto:"+email)}>{email}</Text></Text>))] //const extra = [...item.item.emails.map(email=>(<Text key={email}>{'\n'}Email: <Text style={styles.linktext} onPress={()=>Linking.openURL("mailto:"+email)}>{email}</Text></Text>))]