From ca5f3e5bfe113e416b5454f35e6d688377e7b77d Mon Sep 17 00:00:00 2001
From: Alexandru Munteanu <alexandru.munteanu@thinslices.com>
Date: Fri, 23 Feb 2018 14:23:35 +0200
Subject: [PATCH] fix(AdminUsers): change <a> to <Link>

---
 .../components-faraday/src/components/Admin/AdminUsers.js   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/packages/components-faraday/src/components/Admin/AdminUsers.js b/packages/components-faraday/src/components/Admin/AdminUsers.js
index db9501af1..507d75a48 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;
 `
-- 
GitLab