feat: menu item refresh enhanced mode

This commit is contained in:
GyDi committed 2022-03-06 15:46:16 +08:00
1 parent 6ba4afc5bb
commit 6040aae12a
3 files changed
+9 -4

No files matched your search

+5 -2
View File
@@ -36,6 +36,7 @@ interface Props {
onMoveTop: () => void;
onMoveEnd: () => void;
onDelete: () => void;
onEnhance: () => void;
}
// profile enhanced item
@@ -48,6 +49,7 @@ const ProfileMore = (props: Props) => {
onMoveTop,
onMoveEnd,
onDelete,
onEnhance,
} = props;
const { type } = itemData;
@@ -76,8 +78,9 @@ const ProfileMore = (props: Props) => {
const enableMenu = [
{ label: "Disable", handler: closeWrapper(onDisable) },
{ label: "Refresh", handler: closeWrapper(onEnhance) },
{ label: "Edit", handler: onEdit },
{ label: "View File", handler: onView },
{ label: "View", handler: onView },
{ label: "To Top", handler: closeWrapper(onMoveTop) },
{ label: "To End", handler: closeWrapper(onMoveEnd) },
{ label: "Delete", handler: closeWrapper(onDelete) },
@@ -86,7 +89,7 @@ const ProfileMore = (props: Props) => {
const disableMenu = [
{ label: "Enable", handler: closeWrapper(onEnable) },
{ label: "Edit", handler: onEdit },
{ label: "View File", handler: onView },
{ label: "View", handler: onView },
{ label: "Delete", handler: closeWrapper(onDelete) },
];