diff --git a/packages/components-faraday/src/components/Admin/AdminUsers.js b/packages/components-faraday/src/components/Admin/AdminUsers.js index db9501af114f4c9c006fdeabed6743a2ca138db3..507d75a4871c4972a54a32a4031ed390eb945cdb 100644 --- a/packages/components-faraday/src/components/Admin/AdminUsers.js +++ b/packages/components-faraday/src/components/Admin/AdminUsers.js @@ -6,7 +6,7 @@ import { Icon, Menu } from '@pubsweet/ui' import { actions } from 'pubsweet-client' import { ConnectPage } from 'xpub-connect' import { withJournal } from 'xpub-journal' -import { withRouter } from 'react-router-dom' +import { withRouter, Link } from 'react-router-dom' import { compose, withState, withHandlers } from 'recompose' import { Pagination } from './' @@ -44,7 +44,7 @@ const TableRow = ({ <Tag>{isConfirmed ? 'Confirmed' : 'Invited'}</Tag> </td> <td> - <Action href={`/admin/users/edit/${id}`}>Edit</Action> + <Action to={`/admin/users/edit/${id}`}>Edit</Action> </td> </Row> ) @@ -296,7 +296,7 @@ const Role = styled.span` text-transform: uppercase; ` -const Action = styled.a` +const Action = styled(Link)` color: ${({ theme }) => theme.colorPrimary}; display: none; `