Skip to content

Commit

Permalink
Fix drawer close button color
Browse files Browse the repository at this point in the history
  • Loading branch information
NilsBaumgartner1994 committed Aug 14, 2023
1 parent 3a23a87 commit 491bc5c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const CustomDrawerContent: FunctionComponent = (props) => {
if(isSmallDevice){
return(
<View style={{width: "100%", flexDirection: flexDirection}}>
<DrawerButton closeDrawer={true} useTextColor={true} />
<DrawerButton closeDrawer={true} backgroundColor={bgColor} />
</View>
)
}
Expand All @@ -97,6 +97,8 @@ export const CustomDrawerContent: FunctionComponent = (props) => {

const padding = 18;



return (
<MyThemedBox style={[{height: "100%"}, customBackgroundStyle]}>
<KitchenSafeAreaView style={{height: "100%", width: "100%"}}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const DrawerButton: FunctionComponent<AppState> = ({color, useTextColor,
let usedColor = color;

const headerBackgroundColor = props?.backgroundColor;
if(!usedColor){
if(!usedColor && !!headerBackgroundColor){
usedColor = useMyContrastColor(headerBackgroundColor);
}

Expand Down

0 comments on commit 491bc5c

Please sign in to comment.