+ return (
+
{content}
);
}}
i18nStrings={i18nStrings}
- dragOverlayClassName={styles['drag-overlay-container']}
+ borderRadiusVariant="container"
/>
);
}
-export const ContainerWithDragHandle = forwardRef(
- (
- {
- dragHandleAttributes,
- dragHandleListeners,
- option,
- ...arrowButtonsProps
- }: {
- dragHandleAttributes: DragHandleProps['attributes'];
- dragHandleListeners?: DragHandleProps['listeners'];
- option: { id: string; title: string; content: React.ReactNode };
- disabledUp?: boolean;
- disabledDown?: boolean;
- onMoveUp: () => void;
- onMoveDown: () => void;
- },
- ref: ForwardedRef
- ) => {
- return (
-
-
-
- {option.title}
-
-
- }
- >
- {option.content}
-
-
- );
- }
-);
+export const ContainerWithDragHandle = ({
+ dragHandleProps,
+ option,
+ ...arrowButtonsProps
+}: {
+ dragHandleProps: DragHandleProps;
+ option: { id: string; title: string; content: React.ReactNode };
+ disabledUp?: boolean;
+ disabledDown?: boolean;
+ onMoveUp: () => void;
+ onMoveDown: () => void;
+}) => {
+ return (
+
+
+ {option.title}
+
+
+ }
+ >
+ {option.content}
+
+ );
+};
diff --git a/pages/dnd/reorderable-list.tsx b/pages/dnd/reorderable-list.tsx
index 38670e5aec..5c0071441b 100644
--- a/pages/dnd/reorderable-list.tsx
+++ b/pages/dnd/reorderable-list.tsx
@@ -1,12 +1,12 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
-import React, { ForwardedRef, forwardRef } from 'react';
+import React, { ForwardedRef } from 'react';
import { useUniqueId } from '@dnd-kit/utilities';
import clsx from 'clsx';
-import { Box, SpaceBetween } from '~components';
-import { DndContainer } from '~components/internal/components/dnd-container';
+import { SpaceBetween } from '~components';
+import { DndArea } from '~components/internal/components/dnd-area';
import DragHandle, { DragHandleProps } from '~components/internal/components/drag-handle';
import { Instance } from '../table/generate-data';
@@ -17,8 +17,7 @@ import styles from './styles.scss';
interface OptionProps