File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,12 @@ import { inject, observer } from 'mobx-react';
77
88import Item from '../Item' ;
99
10- const TrashItem = ( { isOver, canDrop, connectDropTarget } ) =>
10+ const TrashItem = ( { currentPath , isOver, canDrop, connectDropTarget } ) =>
1111 connectDropTarget (
1212 < div >
1313 < Item
14- path = { '/dashboard/trash' }
14+ active = { currentPath === '/dashboard/trash' }
15+ path = "/dashboard/trash"
1516 Icon = { TrashIcon }
1617 name = "Trash"
1718 style = {
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ class Sidebar extends React.Component {
6969 currentTeamId = { currentTeamId }
7070 openByDefault
7171 />
72- < TrashItem />
72+ < TrashItem currentPath = { path } />
7373 </ Items >
7474
7575 < Query query = { TEAMS_QUERY } >
You can’t perform that action at this time.
0 commit comments