mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-22 15:04:50 +01:00
Update Header.tsx
This commit is contained in:
parent
30e6b3baa3
commit
22862186f5
1 changed files with 3 additions and 7 deletions
|
@ -25,7 +25,7 @@ export const Header: React.FC<HeaderProps> = ({ leftText, isDrawerList, onNewWal
|
|||
},
|
||||
});
|
||||
|
||||
const HEADER_MAX_HEIGHT = 70;
|
||||
const HEADER_MAX_HEIGHT = 55;
|
||||
const HEADER_MIN_HEIGHT = 0;
|
||||
const HEADER_SCROLL_DISTANCE = HEADER_MAX_HEIGHT - HEADER_MIN_HEIGHT;
|
||||
|
||||
|
@ -44,9 +44,9 @@ export const Header: React.FC<HeaderProps> = ({ leftText, isDrawerList, onNewWal
|
|||
return (
|
||||
<Animated.View style={[styles.root, styleWithProps.root, !staticText && { height: headerHeightAnimated, opacity: headerOpacity }]}>
|
||||
{staticText ? (
|
||||
<Text style={[styles.text, styleWithProps.text, styles.title]}>{leftText}</Text>
|
||||
<Text style={[styles.text, styleWithProps.text]}>{leftText}</Text>
|
||||
) : (
|
||||
<Animated.Text style={[styles.text, styleWithProps.text, styles.title]}>{leftText}</Animated.Text>
|
||||
<Animated.Text style={[styles.text, styleWithProps.text]}>{leftText}</Animated.Text>
|
||||
)}
|
||||
{onNewWalletPress && <PlusIcon accessibilityRole="button" accessibilityLabel={loc.wallets.add_title} onPress={onNewWalletPress} />}
|
||||
</Animated.View>
|
||||
|
@ -66,8 +66,4 @@ const styles = StyleSheet.create({
|
|||
fontWeight: 'bold',
|
||||
fontSize: 34,
|
||||
},
|
||||
title: {
|
||||
fontSize: 34,
|
||||
fontWeight: '600',
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue