Remove shouldCloseCommandMenuOnClick (#12593)
Remove deprecated prop `shouldCloseCommandMenuOnClick`
This commit is contained in:
@ -15,7 +15,6 @@ export type CommandMenuItemProps = {
|
||||
onClick?: () => void;
|
||||
Icon?: IconComponent;
|
||||
hotKeys?: string[];
|
||||
shouldCloseCommandMenuOnClick?: boolean;
|
||||
RightComponent?: ReactNode;
|
||||
};
|
||||
|
||||
|
||||
@ -53,7 +53,6 @@ export const useCommandMenuSearchRecords = () => {
|
||||
),
|
||||
shouldBeRegistered: () => true,
|
||||
description: capitalize(searchRecord.objectNameSingular),
|
||||
shouldCloseCommandMenuOnClick: true,
|
||||
};
|
||||
|
||||
if (
|
||||
|
||||
@ -23,5 +23,4 @@ export type Command = {
|
||||
Icon?: IconComponent;
|
||||
hotKeys?: string[];
|
||||
onCommandClick?: () => void;
|
||||
shouldCloseCommandMenuOnClick?: boolean;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user