Skip to content

Commit 3bcec8b

Browse files
winterdouglase-younan
authored andcommitted
fix: allows header container styles overriding
1 parent 540bfef commit 3bcec8b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/components/headers/Header.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ const Header: React.FC<HeaderProps> = ({
5050
opacity={showNavBar}
5151
style={[
5252
styles.leftContainer,
53-
headerLeftStyle,
5453
noHeaderLeftRight && styles.noFlex,
5554
{ width: minSideHeaderWidth },
55+
headerLeftStyle,
5656
]}
5757
>
5858
{headerLeft}
@@ -61,9 +61,9 @@ const Header: React.FC<HeaderProps> = ({
6161
<View
6262
style={[
6363
styles.leftContainer,
64-
headerLeftStyle,
6564
noHeaderLeftRight && styles.noFlex,
6665
{ width: minSideHeaderWidth },
66+
headerLeftStyle,
6767
]}
6868
>
6969
{headerLeft}
@@ -74,12 +74,12 @@ const Header: React.FC<HeaderProps> = ({
7474
(headerCenterFadesIn ? (
7575
<FadingView
7676
opacity={showNavBar}
77-
style={[styles.centerContainer, headerCenterStyle, { minWidth: centerWidth }]}
77+
style={[styles.centerContainer, { minWidth: centerWidth }, headerCenterStyle]}
7878
>
7979
{headerCenter}
8080
</FadingView>
8181
) : (
82-
<View style={[styles.centerContainer, headerCenterStyle, { width: centerWidth }]}>
82+
<View style={[styles.centerContainer, { width: centerWidth }, headerCenterStyle]}>
8383
{headerCenter}
8484
</View>
8585
))}
@@ -89,9 +89,9 @@ const Header: React.FC<HeaderProps> = ({
8989
opacity={showNavBar}
9090
style={[
9191
styles.rightContainer,
92-
headerRightStyle,
9392
noHeaderLeftRight && styles.noFlex,
9493
{ width: minSideHeaderWidth },
94+
headerRightStyle,
9595
]}
9696
>
9797
{headerRight}
@@ -100,9 +100,9 @@ const Header: React.FC<HeaderProps> = ({
100100
<View
101101
style={[
102102
styles.rightContainer,
103-
headerRightStyle,
104103
noHeaderLeftRight && styles.noFlex,
105104
{ width: minSideHeaderWidth },
105+
headerRightStyle,
106106
]}
107107
>
108108
{headerRight}

0 commit comments

Comments
 (0)