Skip to content

Commit 793c4d9

Browse files
committed
fix: remove redundant flag
1 parent 979a0a9 commit 793c4d9

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

src/components/ButtonWithDropdownMenu/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ function ButtonWithDropdownMenu<IValueType>({
5151
secondLineText = '',
5252
icon,
5353
shouldUseModalPaddingStyle = true,
54-
shouldHandleNavigationBack = true,
5554
}: ButtonWithDropdownMenuProps<IValueType>) {
5655
const theme = useTheme();
5756
const styles = useThemeStyles();
@@ -224,7 +223,7 @@ function ButtonWithDropdownMenu<IValueType>({
224223
setIsMenuVisible(false);
225224
onOptionsMenuHide?.();
226225
}}
227-
shouldHandleNavigationBack={shouldHandleNavigationBack}
226+
shouldHandleNavigationBack
228227
onModalShow={onOptionsMenuShow}
229228
onItemSelected={(selectedSubitem, index, event) => {
230229
onSubItemSelected?.(selectedSubitem, index, event);

src/components/ButtonWithDropdownMenu/types.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,6 @@ type ButtonWithDropdownMenuProps<TValueType> = {
142142

143143
/** Whether to use modal padding style for the popover menu */
144144
shouldUseModalPaddingStyle?: boolean;
145-
146-
/** Whether handle navigation back when modal show. */
147-
shouldHandleNavigationBack?: boolean;
148145
};
149146

150147
export type {

0 commit comments

Comments
 (0)