Skip to content

Commit

Permalink
Remove react-dnd
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-jeremy committed Jan 18, 2024
1 parent 0c182c8 commit 4a36da0
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 254 deletions.
2 changes: 0 additions & 2 deletions packages/desktop-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@
"memoize-one": "^6.0.0",
"pikaday": "1.8.2",
"react": "18.2.0",
"react-dnd": "^16.0.1",
"react-dnd-html5-backend": "^16.0.1",
"react-dom": "18.2.0",
"react-error-boundary": "^4.0.11",
"react-markdown": "^8.0.7",
Expand Down
6 changes: 1 addition & 5 deletions packages/desktop-client/src/components/FinancesApp.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// @ts-strict-ignore
import React, { type ReactElement, useEffect, useMemo } from 'react';
import { DndProvider } from 'react-dnd';
import { HTML5Backend as Backend } from 'react-dnd-html5-backend';
import {
Route,
Routes,
Expand Down Expand Up @@ -267,9 +265,7 @@ export function FinancesApp() {
<BudgetMonthCountProvider>
<PayeesProvider>
<AccountsProvider>
<DndProvider backend={Backend}>
<ScrollProvider>{app}</ScrollProvider>
</DndProvider>
<ScrollProvider>{app}</ScrollProvider>
</AccountsProvider>
</PayeesProvider>
</BudgetMonthCountProvider>
Expand Down
177 changes: 0 additions & 177 deletions packages/desktop-client/src/components/sort.tsx

This file was deleted.

72 changes: 2 additions & 70 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,6 @@ __metadata:
memoize-one: "npm:^6.0.0"
pikaday: "npm:1.8.2"
react: "npm:18.2.0"
react-dnd: "npm:^16.0.1"
react-dnd-html5-backend: "npm:^16.0.1"
react-dom: "npm:18.2.0"
react-error-boundary: "npm:^4.0.11"
react-markdown: "npm:^8.0.7"
Expand Down Expand Up @@ -3050,27 +3048,6 @@ __metadata:
languageName: node
linkType: hard

"@react-dnd/asap@npm:^5.0.1":
version: 5.0.2
resolution: "@react-dnd/asap@npm:5.0.2"
checksum: a75039720b89da11bc678c2b61b1d2840c8349023ef2b8f8ca9099e7ece6953e9be704bf393bf799eae83d245f62115eb5302499612c2aa009c1d91caa9462df
languageName: node
linkType: hard

"@react-dnd/invariant@npm:^4.0.1":
version: 4.0.2
resolution: "@react-dnd/invariant@npm:4.0.2"
checksum: b638e9643e6e93da03ef463be3c1b92055daadc391fc08e4ce8639ef8c7738f91058ec83ee52a0d0df0d3a6dd2811a7703e1450737708f043c2e909c0a99dd31
languageName: node
linkType: hard

"@react-dnd/shallowequal@npm:^4.0.1":
version: 4.0.2
resolution: "@react-dnd/shallowequal@npm:4.0.2"
checksum: 7f21d691bddbfd4d2830948cbeefecca1600b2b46bcb1934926795f07ae8a1fa60a3dfd3a2112be5ef682c3820c80a99711e9fa15843f7e300acb25a4ecb70ab
languageName: node
linkType: hard

"@react-spring/animated@npm:~9.7.2":
version: 9.7.2
resolution: "@react-spring/animated@npm:9.7.2"
Expand Down Expand Up @@ -7299,17 +7276,6 @@ __metadata:
languageName: node
linkType: hard

"dnd-core@npm:^16.0.1":
version: 16.0.1
resolution: "dnd-core@npm:16.0.1"
dependencies:
"@react-dnd/asap": "npm:^5.0.1"
"@react-dnd/invariant": "npm:^4.0.1"
redux: "npm:^4.2.0"
checksum: 711dc30f88f7c5cb5308f105b337f6a4db7ad098e985d2e120189f17a3d1865d283aadef1641dc129706e0399746835a90e2a92ef65f0cdcf5aa0d0cb8c79265
languageName: node
linkType: hard

"doctrine@npm:^2.1.0":
version: 2.1.0
resolution: "doctrine@npm:2.1.0"
Expand Down Expand Up @@ -9471,7 +9437,7 @@ __metadata:
languageName: node
linkType: hard

"hoist-non-react-statics@npm:^3.3.0, hoist-non-react-statics@npm:^3.3.2":
"hoist-non-react-statics@npm:^3.3.0":
version: 3.3.2
resolution: "hoist-non-react-statics@npm:3.3.2"
dependencies:
Expand Down Expand Up @@ -13927,40 +13893,6 @@ __metadata:
languageName: node
linkType: hard

"react-dnd-html5-backend@npm:^16.0.1":
version: 16.0.1
resolution: "react-dnd-html5-backend@npm:16.0.1"
dependencies:
dnd-core: "npm:^16.0.1"
checksum: fa0feacc01ba8c923fc21461cc5919a856f09384f9a684b4c70ab9cdddc4a6ec64f0de4f65946a8061284ed92c5e3104caca56ae58884235604898a909d82e90
languageName: node
linkType: hard

"react-dnd@npm:^16.0.1":
version: 16.0.1
resolution: "react-dnd@npm:16.0.1"
dependencies:
"@react-dnd/invariant": "npm:^4.0.1"
"@react-dnd/shallowequal": "npm:^4.0.1"
dnd-core: "npm:^16.0.1"
fast-deep-equal: "npm:^3.1.3"
hoist-non-react-statics: "npm:^3.3.2"
peerDependencies:
"@types/hoist-non-react-statics": ">= 3.3.1"
"@types/node": ">= 12"
"@types/react": ">= 16"
react: ">= 16.14"
peerDependenciesMeta:
"@types/hoist-non-react-statics":
optional: true
"@types/node":
optional: true
"@types/react":
optional: true
checksum: e27cf5156c306d183585099854c597266eda014c51e7dfca657f7099d5db0a09a4fe07e4c8cbc3b04ca613b805878a8f97f23cc8e13887dbfb1f05efbe5a12e7
languageName: node
linkType: hard

"react-dom@npm:18.2.0":
version: 18.2.0
resolution: "react-dom@npm:18.2.0"
Expand Down Expand Up @@ -14368,7 +14300,7 @@ __metadata:
languageName: node
linkType: hard

"redux@npm:^4.0.0, redux@npm:^4.0.5, redux@npm:^4.2.0":
"redux@npm:^4.0.0, redux@npm:^4.0.5":
version: 4.2.1
resolution: "redux@npm:4.2.1"
dependencies:
Expand Down

0 comments on commit 4a36da0

Please sign in to comment.