Skip to content

Es/fix back map details#1082

Merged
ErikSin merged 1 commit intodevelopfrom
Es/fix-back-map-details
Feb 21, 2023
Merged

Es/fix back map details#1082
ErikSin merged 1 commit intodevelopfrom
Es/fix-back-map-details

Conversation

@ErikSin
Copy link
Contributor

@ErikSin ErikSin commented Feb 15, 2023

Fixes back button in map details

@ErikSin ErikSin force-pushed the Es/fix-back-map-details branch from 23c9ac0 to f741385 Compare February 21, 2023 11:53
interface Props extends React.PropsWithChildren<{}> {
onDismiss: () => void;
onHardwareBackPress?: () => void;
onHardwareBackPress?: () => void | boolean;
Copy link
Member

@achou11 achou11 Feb 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

think this would need to be adjusted to this:

Suggested change
onHardwareBackPress?: () => void | boolean;
onHardwareBackPress?: (() => void) | boolean;

generally would avoid making this a union of a boolean though and use a separate argument, as done in #1083

@ErikSin ErikSin merged commit eb69799 into develop Feb 21, 2023
@ErikSin ErikSin deleted the Es/fix-back-map-details branch February 21, 2023 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants