diff --git a/pages/dnd/commons.tsx b/pages/dnd/commons.tsx index cb2b49452ab..2630ff6f21c 100644 --- a/pages/dnd/commons.tsx +++ b/pages/dnd/commons.tsx @@ -4,12 +4,12 @@ import React from 'react'; import { Box, Button, SpaceBetween, StatusIndicator } from '~components'; -import { DndContainerProps } from '~components/internal/components/dnd-container/interfaces'; +import { DndAreaProps } from '~components/internal/components/dnd-area/interfaces'; import { Instance } from '../table/generate-data'; import { stateToStatusIndicator } from '../table/shared-configs'; -export const i18nStrings: DndContainerProps['i18nStrings'] = { +export const i18nStrings: DndAreaProps['i18nStrings'] = { dragHandleAriaLabel: 'Drag handle', dragHandleAriaDescription: "Use Space or Enter to activate drag for an item, then use the arrow keys to move the item's position. To complete the position move, use Space or Enter, or to discard the move, use Escape.", diff --git a/pages/dnd/reorderable-containers.tsx b/pages/dnd/reorderable-containers.tsx index 5d127cf86fd..a3b0bbf2d8b 100644 --- a/pages/dnd/reorderable-containers.tsx +++ b/pages/dnd/reorderable-containers.tsx @@ -1,11 +1,11 @@ // 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 clsx from 'clsx'; import { Box, Container, SpaceBetween } from '~components'; -import { DndContainer } from '~components/internal/components/dnd-container'; +import { DndArea } from '~components/internal/components/dnd-area'; import DragHandle, { DragHandleProps } from '~components/internal/components/drag-handle'; import { ArrowButtons, i18nStrings } from './commons'; @@ -15,8 +15,7 @@ import styles from './styles.scss'; interface OptionProps