Remove role display from beneficiary detail header
This commit is contained in:
parent
fc4567c690
commit
61d275ec7c
@ -344,14 +344,7 @@ export default function BeneficiaryDetailScreen() {
|
|||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
)}
|
)}
|
||||||
<View style={styles.headerTitleContainer}>
|
|
||||||
<Text style={styles.headerTitle}>{beneficiary.name}</Text>
|
<Text style={styles.headerTitle}>{beneficiary.name}</Text>
|
||||||
{beneficiary.role && (
|
|
||||||
<Text style={styles.headerRole}>
|
|
||||||
{beneficiary.role.charAt(0).toUpperCase() + beneficiary.role.slice(1)}
|
|
||||||
</Text>
|
|
||||||
)}
|
|
||||||
</View>
|
|
||||||
</View>
|
</View>
|
||||||
|
|
||||||
<BeneficiaryMenu
|
<BeneficiaryMenu
|
||||||
@ -574,19 +567,11 @@ const styles = StyleSheet.create({
|
|||||||
height: AvatarSizes.sm,
|
height: AvatarSizes.sm,
|
||||||
borderRadius: AvatarSizes.sm / 2,
|
borderRadius: AvatarSizes.sm / 2,
|
||||||
},
|
},
|
||||||
headerTitleContainer: {
|
|
||||||
flexDirection: 'column',
|
|
||||||
},
|
|
||||||
headerTitle: {
|
headerTitle: {
|
||||||
fontSize: FontSizes.lg,
|
fontSize: FontSizes.lg,
|
||||||
fontWeight: FontWeights.semibold,
|
fontWeight: FontWeights.semibold,
|
||||||
color: AppColors.textPrimary,
|
color: AppColors.textPrimary,
|
||||||
},
|
},
|
||||||
headerRole: {
|
|
||||||
fontSize: FontSizes.xs,
|
|
||||||
color: AppColors.textMuted,
|
|
||||||
marginTop: 1,
|
|
||||||
},
|
|
||||||
// Debug Panel
|
// Debug Panel
|
||||||
debugPanel: {
|
debugPanel: {
|
||||||
backgroundColor: '#FFF9C4',
|
backgroundColor: '#FFF9C4',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user