Skip to content

Commit 4f317c0

Browse files
authored
Migrate react-beautiful-dnd to @hello-pangea/dnd (#746)
Signed-off-by: achour94 <[email protected]>
1 parent ddc5320 commit 4f317c0

File tree

5 files changed

+59
-53
lines changed

5 files changed

+59
-53
lines changed

package-lock.json

Lines changed: 55 additions & 48 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"licenses-check": "license-checker --summary --excludePrivatePackages --production --onlyAllow \"$( jq -r .onlyAllow[] license-checker-config.json | tr '\n' ';')\" --excludePackages \"$( jq -r .excludePackages[] license-checker-config.json | tr '\n' ';')\""
3535
},
3636
"dependencies": {
37+
"@hello-pangea/dnd": "^18.0.1",
3738
"@react-querybuilder/dnd": "^8.2.0",
3839
"@react-querybuilder/material": "^8.2.0",
3940
"autosuggest-highlight": "^3.3.4",
@@ -42,7 +43,6 @@
4243
"localized-countries": "^2.0.0",
4344
"oidc-client": "^1.11.5",
4445
"prop-types": "^15.8.1",
45-
"react-beautiful-dnd": "^13.1.1",
4646
"react-csv-downloader": "^3.3.0",
4747
"react-dnd": "^16.0.1",
4848
"react-dnd-html5-backend": "^16.0.1",
@@ -96,7 +96,6 @@
9696
"@types/node": "^22.13.4",
9797
"@types/prop-types": "^15.7.14",
9898
"@types/react": "^18.3.18",
99-
"@types/react-beautiful-dnd": "^13.1.8",
10099
"@types/react-dom": "^18.3.5",
101100
"@types/react-resizable": "^3.0.8",
102101
"@typescript-eslint/eslint-plugin": "^7.18.0",

src/components/checkBoxList/CheckBoxList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import { useState } from 'react';
99
import { Box } from '@mui/material';
10-
import { DragDropContext, Droppable } from 'react-beautiful-dnd';
10+
import { DragDropContext, Droppable } from '@hello-pangea/dnd';
1111
import { CheckBoxListItems } from './CheckBoxListItems';
1212
import { CheckboxListProps } from './checkBoxList.type';
1313

src/components/checkBoxList/CheckBoxListItems.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import { useCallback, useMemo } from 'react';
99
import { Checkbox, List, ListItem, ListItemButton, ListItemIcon, ListItemText } from '@mui/material';
1010
import { FormattedMessage } from 'react-intl';
11-
import { Draggable } from 'react-beautiful-dnd';
11+
import { Draggable } from '@hello-pangea/dnd';
1212
import { CheckBoxListItem } from './CheckBoxListItem';
1313
import { OverflowableText } from '../overflowableText';
1414
import { DraggableCheckBoxListItem } from './DraggableCheckBoxListItem';

src/components/checkBoxList/checkBoxList.type.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77

88
import type { ReactElement, ReactNode } from 'react';
9-
import type { DraggableProvided, DragStart, DropResult } from 'react-beautiful-dnd';
9+
import type { DraggableProvided, DragStart, DropResult } from '@hello-pangea/dnd';
1010
import type { SxProps, Theme } from '@mui/material';
1111

1212
export type CheckBoxListItemSx = {

0 commit comments

Comments
 (0)