Skip to content

Commit d624fc7

Browse files
committed
fix(Header): corriger la structure du composant et améliorer la gestion des couleurs
1 parent 307dff4 commit d624fc7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/Global/PapillonModernHeader.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const LinearGradientModernHeader: React.FC<ModernHeaderProps> = ({ children, out
4444
const enableBlur = Platform.OS === "ios" && !isExpoGo() && parseInt(Platform.Version) >= 18;
4545

4646
return (
47-
<View style={{marginTop: (Platform.OS === "android" && outsideNav) ? insets.top : undefined}}>
47+
<>
4848
{enableBlur ? (
4949
<CustomFilterView
5050
style={[
@@ -139,7 +139,7 @@ const LinearGradientModernHeader: React.FC<ModernHeaderProps> = ({ children, out
139139
}}
140140
/>
141141
}
142-
</View>
142+
</>
143143
);
144144
};
145145

@@ -159,7 +159,7 @@ const NativeModernHeader: React.FC<ModernHeaderProps> = ({ children, outsideNav
159159
justifyContent: "space-between",
160160
alignItems: "center",
161161
gap: 8,
162-
backgroundColor: tint ?? theme.colors.card + "10",
162+
backgroundColor: tint ? tint : theme.colors.card + "10",
163163
borderBottomColor: theme.colors.border,
164164
borderBottomWidth: 0.5,
165165
}]}

0 commit comments

Comments
 (0)