{item.icon ? (
) : null}
diff --git a/src/components/AllPagesPanel/AllPagesPanel.scss b/src/components/AllPagesPanel/AllPagesPanel.scss
index f9c9ceb..9f73ac9 100644
--- a/src/components/AllPagesPanel/AllPagesPanel.scss
+++ b/src/components/AllPagesPanel/AllPagesPanel.scss
@@ -20,4 +20,15 @@
&__discoverable-feature-wrapper {
display: flex;
}
+
+ &__item_editMode {
+ padding: 0 var(--g-spacing-6);
+ }
+
+ &__drag-placeholder {
+ padding-left: 88px;
+ padding-right: 68px;
+ text-wrap: nowrap;
+ visibility: hidden;
+ }
}
diff --git a/src/components/AllPagesPanel/AllPagesPanel.tsx b/src/components/AllPagesPanel/AllPagesPanel.tsx
index f62f53b..ddfc949 100644
--- a/src/components/AllPagesPanel/AllPagesPanel.tsx
+++ b/src/components/AllPagesPanel/AllPagesPanel.tsx
@@ -1,4 +1,4 @@
-import React, {useCallback, useEffect, useRef, useState} from 'react';
+import React, {ReactNode, useCallback, useEffect, useMemo, useRef, useState} from 'react';
import {Gear} from '@gravity-ui/icons';
import {Button, Flex, Icon, List, ListItemData, Text} from '@gravity-ui/uikit';
@@ -30,6 +30,9 @@ export const AllPagesPanel: React.FC
= (props) => {
menuItemsRef.current = menuItems;
const [isEditMode, setIsEditMode] = useState(false);
+
+ const [dragingItemTitle, setDragingItemTitle] = useState(null);
+
const toggleEditMode = useCallback(() => {
setIsEditMode((prev) => !prev);
}, []);
@@ -72,15 +75,28 @@ export const AllPagesPanel: React.FC = (props) => {
[onMenuItemsChanged, editMenuProps],
);
+ const onDragEnd = useCallback(() => {
+ setDragingItemTitle(null);
+ }, [setDragingItemTitle]);
+
const itemRender = useCallback(
- (item: ListItemData
);
diff --git a/src/components/AsideHeader/types.tsx b/src/components/AsideHeader/types.tsx
index 32a1b48..a38d84f 100644
--- a/src/components/AsideHeader/types.tsx
+++ b/src/components/AsideHeader/types.tsx
@@ -22,6 +22,8 @@ export interface EditMenuProps {
onOpenEditMode?: () => void;
onToggleMenuItem?: (changedItem: MenuItem) => void;
onResetSettingsToDefault?: () => void;
+ enableSorting?: boolean;
+ onChangeItemsOrder?: (changedItem: MenuItem, oldIndex: number, newIndex: number) => void;
}
export interface AsideHeaderGeneralProps extends QAProps {