We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3099d2a commit 34529a2Copy full SHA for 34529a2
packages/app/src/app/pages/Dashboard/Sidebar/TrashItem/index.tsx
@@ -2,7 +2,7 @@ import React from 'react';
2
import { DropTarget } from 'react-dnd';
3
import TrashIcon from 'react-icons/lib/md/delete';
4
5
-import { withRouter } from 'react-router-dom';
+import { withRouter, RouteComponentProps } from 'react-router-dom';
6
7
import { Item } from '../Item';
8
import { DELETE_SANDBOX_DROP_KEY } from '../../Content/SandboxCard';
@@ -14,7 +14,7 @@ interface Props {
14
connectDropTarget: (target: React.ReactElement) => React.ReactElement;
15
}
16
17
-const TrashItemComponent: React.FC<Props> = ({
+const TrashItemComponent: React.FC<Props & RouteComponentProps> = ({
18
currentPath,
19
isOver,
20
canDrop,
0 commit comments