Skip to content

Commit

Permalink
EES-4287 replace react-beautiful-dnd
Browse files Browse the repository at this point in the history
  • Loading branch information
amyb-hiveit committed Mar 12, 2024
1 parent 7f23d35 commit 41be642
Show file tree
Hide file tree
Showing 26 changed files with 95 additions and 99 deletions.
141 changes: 70 additions & 71 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions src/explore-education-statistics-admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"querystring": "0.2.1",
"react": "17.0.2",
"react-app-polyfill": "^3.0.0",
"react-beautiful-dnd": "^13.1.1",
"@hello-pangea/dnd": "^16.5.0",
"react-dev-utils": "^12.0.1",
"react-dom": "17.0.2",
"react-helmet": "^6.1.0",
Expand Down Expand Up @@ -111,7 +111,6 @@
"@types/node": "^16.18.31",
"@types/qs": "^6.9.7",
"@types/react": "17.0.27",
"@types/react-beautiful-dnd": "^13.1.4",
"@types/react-dom": "17.0.9",
"@types/react-helmet": "^6.1.0",
"@types/react-lazyload": "^3.0.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import styles from '@admin/components/DraggableItem.module.scss';
import classNames from 'classnames';
import React, { ReactNode } from 'react';
import { Draggable } from 'react-beautiful-dnd';
import { Draggable } from '@hello-pangea/dnd';

export const DragHandle = ({ className }: { className?: string }) => (
<span aria-hidden className={className ?? styles.dragHandle}>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import styles from '@admin/components/DroppableArea.module.scss';
import classNames from 'classnames';
import React, { ReactNode } from 'react';
import { DroppableProvided, DroppableStateSnapshot } from 'react-beautiful-dnd';
import { DroppableProvided, DroppableStateSnapshot } from '@hello-pangea/dnd';

interface Props {
children: ReactNode;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import classNames from 'classnames';
import React, { ReactNode } from 'react';
import { Draggable } from 'react-beautiful-dnd';
import { Draggable } from '@hello-pangea/dnd';
import styles from './BlockDraggable.module.scss';

interface Props {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { ReactNode } from 'react';
import { Droppable } from 'react-beautiful-dnd';
import { Droppable } from '@hello-pangea/dnd';

interface Props {
droppable: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import React, {
useMemo,
useState,
} from 'react';
import { DragDropContext, Droppable, DropResult } from 'react-beautiful-dnd';
import { DragDropContext, Droppable, DropResult } from '@hello-pangea/dnd';
import styles from './EditableAccordion.module.scss';
import {
DraggableAccordionSectionProps,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useEditingContext } from '@admin/contexts/EditingContext';
import { EditableBlock } from '@admin/services/types/content';
import InsetText from '@common/components/InsetText';
import reorder from '@common/utils/reorder';
import { DragDropContext, DropResult } from 'react-beautiful-dnd';
import { DragDropContext, DropResult } from '@hello-pangea/dnd';
import React, { ReactNode, useCallback } from 'react';

export interface EditableSectionBlockProps<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import React, {
useMemo,
useState,
} from 'react';
import { DragDropContext, Droppable, DropResult } from 'react-beautiful-dnd';
import { DragDropContext, Droppable, DropResult } from '@hello-pangea/dnd';
import styles from './ReorderableAccordion.module.scss';
import {
DraggableAccordionSectionProps,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import reorder from '@common/utils/reorder';
import styles from '@admin/pages/publication/components/LegacyReleasesTable.module.scss';
import classNames from 'classnames';
import React, { useState } from 'react';
import { DragDropContext, Droppable } from 'react-beautiful-dnd';
import { DragDropContext, Droppable } from '@hello-pangea/dnd';
import { generatePath } from 'react-router';
import { useHistory } from 'react-router-dom';
import ButtonText from '@common/components/ButtonText';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import keyStatStyles from '@common/modules/find-statistics/components/KeyStat.mo
import reorder from '@common/utils/reorder';
import classNames from 'classnames';
import React, { useCallback, useEffect, useState } from 'react';
import { DragDropContext, Draggable, DropResult } from 'react-beautiful-dnd';
import { DragDropContext, Draggable, DropResult } from '@hello-pangea/dnd';
import AddKeyStatistics from '@admin/pages/release/content/components/AddKeyStatistics';

export interface KeyStatisticsProps {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import ButtonText from '@common/components/ButtonText';
import reorder from '@common/utils/reorder';
import classNames from 'classnames';
import React, { useState } from 'react';
import { DragDropContext, Droppable } from 'react-beautiful-dnd';
import { DragDropContext, Droppable } from '@hello-pangea/dnd';

export interface FormattedOption {
id: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import useToggle from '@common/hooks/useToggle';
import React, { useEffect, useState } from 'react';
import { generatePath } from 'react-router';
import orderBy from 'lodash/orderBy';
import { DragDropContext, Droppable } from 'react-beautiful-dnd';
import { DragDropContext, Droppable } from '@hello-pangea/dnd';

interface Props {
canUpdateRelease: boolean;
Expand Down
Loading

0 comments on commit 41be642

Please sign in to comment.