fix: replace sortable

This commit is contained in:
David Ralph 2023-07-11 11:50:05 +01:00
parent a32d42a9e6
commit 845756c080
4 changed files with 21 additions and 21 deletions

View File

@ -17,8 +17,9 @@
"@floating-ui/react-dom": "^2.0.1",
"@fontsource/lexend-deca": "5.0.5",
"@fontsource/montserrat": "5.0.5",
"@mui/material": "5.13.7",
"@muetab/react-color-gradient-picker": "0.1.2",
"@muetab/react-sortable-hoc": "^2.0.0",
"@mui/material": "5.13.7",
"@sentry/react": "^7.57.0",
"embla-carousel-autoplay": "8.0.0-rc10",
"embla-carousel-react": "8.0.0-rc10",
@ -30,7 +31,6 @@
"react-dom": "^18.2.0",
"react-icons": "^4.10.1",
"react-modal": "3.16.1",
"react-sortable-hoc": "2.0.0",
"react-toastify": "9.1.3"
},
"devDependencies": {

View File

@ -22,6 +22,9 @@ dependencies:
'@muetab/react-color-gradient-picker':
specifier: 0.1.2
version: 0.1.2(react-dom@18.2.0)(react@18.2.0)
'@muetab/react-sortable-hoc':
specifier: ^2.0.0
version: 2.0.0(prop-types@15.8.1)(react-dom@18.2.0)(react@18.2.0)
'@mui/material':
specifier: 5.13.7
version: 5.13.7(@emotion/react@11.11.1)(@emotion/styled@11.11.0)(react-dom@18.2.0)(react@18.2.0)
@ -58,9 +61,6 @@ dependencies:
react-modal:
specifier: 3.16.1
version: 3.16.1(react-dom@18.2.0)(react@18.2.0)
react-sortable-hoc:
specifier: 2.0.0
version: 2.0.0(prop-types@15.8.1)(react-dom@18.2.0)(react@18.2.0)
react-toastify:
specifier: 9.1.3
version: 9.1.3(react-dom@18.2.0)(react@18.2.0)
@ -2266,6 +2266,20 @@ packages:
react-dom: 18.2.0(react@18.2.0)
dev: false
/@muetab/react-sortable-hoc@2.0.0(prop-types@15.8.1)(react-dom@18.2.0)(react@18.2.0):
resolution: {integrity: sha512-g0NRAxEcf7aEHrWRNcfKMmzcoF0s32XxqoiRIA2TpUki39Y44JcuYmWj+SQ7VWgd20XyaiYYh31B5VCIX2Btug==}
peerDependencies:
prop-types: ^15.5.7
react: ^18.2.0
react-dom: ^18.2.0
dependencies:
'@babel/runtime': 7.22.6
invariant: 2.2.4
prop-types: 15.8.1
react: 18.2.0
react-dom: 18.2.0(react@18.2.0)
dev: false
/@mui/base@5.0.0-beta.6(react-dom@18.2.0)(react@18.2.0):
resolution: {integrity: sha512-jcHy6HwOX7KzRhRtL8nvIvUlxvLx2Fl6NMRCyUSQSvMTyfou9kndekz0H4HJaXvG1Y4WEifk23RYedOlrD1kEQ==}
engines: {node: '>=12.0.0'}
@ -5296,20 +5310,6 @@ packages:
warning: 4.0.3
dev: false
/react-sortable-hoc@2.0.0(prop-types@15.8.1)(react-dom@18.2.0)(react@18.2.0):
resolution: {integrity: sha512-JZUw7hBsAHXK7PTyErJyI7SopSBFRcFHDjWW5SWjcugY0i6iH7f+eJkY8cJmGMlZ1C9xz1J3Vjz0plFpavVeRg==}
peerDependencies:
prop-types: ^15.5.7
react: ^16.3.0 || ^17.0.0
react-dom: ^16.3.0 || ^17.0.0
dependencies:
'@babel/runtime': 7.22.6
invariant: 2.2.4
prop-types: 15.8.1
react: 18.2.0
react-dom: 18.2.0(react@18.2.0)
dev: false
/react-toastify@9.1.3(react-dom@18.2.0)(react@18.2.0):
resolution: {integrity: sha512-fPfb8ghtn/XMxw3LkxQBk3IyagNpF/LIKjOBflbexr2AWxAH1MJgvnESwEwBn9liLFXgTKWgBSdZpw9m4OTHTg==}
peerDependencies:

View File

@ -1,7 +1,7 @@
import variables from 'modules/variables';
import { PureComponent } from 'react';
import { MdOutlineDragIndicator } from 'react-icons/md';
import { sortableContainer, sortableElement } from 'react-sortable-hoc';
import { sortableContainer, sortableElement } from '@muetab/react-sortable-hoc';
import { toast } from 'react-toastify';
import Greeting from './overview_skeletons/Greeting';

View File

@ -14,7 +14,7 @@ import TextareaAutosize from '@mui/material/TextareaAutosize';
import Tooltip from 'components/helpers/tooltip/Tooltip';
import Checkbox from '@mui/material/Checkbox';
import { shift, useFloating } from '@floating-ui/react-dom';
import { sortableContainer, sortableElement, sortableHandle } from 'react-sortable-hoc';
import { sortableContainer, sortableElement, sortableHandle } from '@muetab/react-sortable-hoc';
import EventBus from 'modules/helpers/eventbus';
const SortableItem = sortableElement(({ value }) => <div>{value}</div>);