Skip to content
Snippets Groups Projects
Commit ca5f3e5b authored by Alexandru Munteanu's avatar Alexandru Munteanu
Browse files

fix(AdminUsers): change <a> to <Link>

parent fb0f1da4
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ import { Icon, Menu } from '@pubsweet/ui' ...@@ -6,7 +6,7 @@ import { Icon, Menu } from '@pubsweet/ui'
import { actions } from 'pubsweet-client' import { actions } from 'pubsweet-client'
import { ConnectPage } from 'xpub-connect' import { ConnectPage } from 'xpub-connect'
import { withJournal } from 'xpub-journal' 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 { compose, withState, withHandlers } from 'recompose'
import { Pagination } from './' import { Pagination } from './'
...@@ -44,7 +44,7 @@ const TableRow = ({ ...@@ -44,7 +44,7 @@ const TableRow = ({
<Tag>{isConfirmed ? 'Confirmed' : 'Invited'}</Tag> <Tag>{isConfirmed ? 'Confirmed' : 'Invited'}</Tag>
</td> </td>
<td> <td>
<Action href={`/admin/users/edit/${id}`}>Edit</Action> <Action to={`/admin/users/edit/${id}`}>Edit</Action>
</td> </td>
</Row> </Row>
) )
...@@ -296,7 +296,7 @@ const Role = styled.span` ...@@ -296,7 +296,7 @@ const Role = styled.span`
text-transform: uppercase; text-transform: uppercase;
` `
const Action = styled.a` const Action = styled(Link)`
color: ${({ theme }) => theme.colorPrimary}; color: ${({ theme }) => theme.colorPrimary};
display: none; display: none;
` `
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment