File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,18 @@ import { DropTarget } from 'react-dnd';
33import TrashIcon from 'react-icons/lib/md/delete' ;
44
55import { withRouter } from 'react-router-dom' ;
6- import { inject , observer } from 'app/componentConnectors' ;
76
87import { Item } from '../Item' ;
98import { DELETE_SANDBOX_DROP_KEY } from '../../Content/SandboxCard' ;
109
11- const TrashItemComponent = ( {
10+ interface Props {
11+ currentPath : string ;
12+ isOver : boolean ;
13+ canDrop : boolean ;
14+ connectDropTarget : ( target : React . ReactElement ) => React . ReactElement ;
15+ }
16+
17+ const TrashItemComponent : React . FC < Props > = ( {
1218 currentPath,
1319 isOver,
1420 canDrop,
@@ -60,8 +66,6 @@ export function collectTarget(connectMonitor, monitor) {
6066 } ;
6167}
6268
63- export const TrashItem = inject ( 'store' , 'signals' ) (
64- DropTarget ( [ 'SANDBOX' ] , entryTarget , collectTarget ) (
65- withRouter ( observer ( TrashItemComponent ) )
66- )
69+ export const TrashItem = DropTarget ( [ 'SANDBOX' ] , entryTarget , collectTarget ) (
70+ withRouter ( TrashItemComponent )
6771) ;
You can’t perform that action at this time.
0 commit comments