Skip to content

Commit 34529a2

Browse files
committed
Fix typings for react-router-dom
1 parent 3099d2a commit 34529a2

File tree

1 file changed

+2
-2
lines changed
  • packages/app/src/app/pages/Dashboard/Sidebar/TrashItem

1 file changed

+2
-2
lines changed

packages/app/src/app/pages/Dashboard/Sidebar/TrashItem/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import { DropTarget } from 'react-dnd';
33
import TrashIcon from 'react-icons/lib/md/delete';
44

5-
import { withRouter } from 'react-router-dom';
5+
import { withRouter, RouteComponentProps } from 'react-router-dom';
66

77
import { Item } from '../Item';
88
import { DELETE_SANDBOX_DROP_KEY } from '../../Content/SandboxCard';
@@ -14,7 +14,7 @@ interface Props {
1414
connectDropTarget: (target: React.ReactElement) => React.ReactElement;
1515
}
1616

17-
const TrashItemComponent: React.FC<Props> = ({
17+
const TrashItemComponent: React.FC<Props & RouteComponentProps> = ({
1818
currentPath,
1919
isOver,
2020
canDrop,

0 commit comments

Comments
 (0)