[FIX] Drawer failing to open/close on ProfileView (#3963)
This commit is contained in:
parent
3e5b833759
commit
d5ac663199
|
@ -13,7 +13,7 @@ interface IHeaderButtonCommon {
|
||||||
|
|
||||||
// Left
|
// Left
|
||||||
export const Drawer = React.memo(
|
export const Drawer = React.memo(
|
||||||
({ navigation, testID, onPress = navigation?.toggleDrawer(), ...props }: IHeaderButtonCommon) => (
|
({ navigation, testID, onPress = () => navigation?.toggleDrawer(), ...props }: IHeaderButtonCommon) => (
|
||||||
<Container left>
|
<Container left>
|
||||||
<Item iconName='hamburguer' onPress={onPress} testID={testID} {...props} />
|
<Item iconName='hamburguer' onPress={onPress} testID={testID} {...props} />
|
||||||
</Container>
|
</Container>
|
||||||
|
@ -57,6 +57,8 @@ export const Preferences = React.memo(({ onPress, testID, ...props }: IHeaderBut
|
||||||
</Container>
|
</Container>
|
||||||
));
|
));
|
||||||
|
|
||||||
export const Legal = React.memo(({ navigation, testID, onPress = navigation?.navigate('LegalView') }: IHeaderButtonCommon) => (
|
export const Legal = React.memo(
|
||||||
|
({ navigation, testID, onPress = () => navigation?.navigate('LegalView') }: IHeaderButtonCommon) => (
|
||||||
<More onPress={onPress} testID={testID} />
|
<More onPress={onPress} testID={testID} />
|
||||||
));
|
)
|
||||||
|
);
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue