Skip to content
Snippets Groups Projects
Commit 507d93b1 authored by Mihail Hagiu's avatar Mihail Hagiu
Browse files

feat(PublonsTable): Added links to publon profile

parent 48a85f87
No related branches found
No related tags found
2 merge requests!110Sprint 21 Features,!95feat(PublonsTable): Added links to publon profile
...@@ -5,7 +5,7 @@ import { Button, Spinner } from '@pubsweet/ui' ...@@ -5,7 +5,7 @@ import { Button, Spinner } from '@pubsweet/ui'
import { get } from 'lodash' import { get } from 'lodash'
import { compose, withHandlers, withProps } from 'recompose' import { compose, withHandlers, withProps } from 'recompose'
import { Label, OpenModal, Text, withFetching } from '../' import { Label, OpenModal, Text, withFetching, ActionLink } from '../'
const TableView = ({ const TableView = ({
reviewers, reviewers,
...@@ -42,7 +42,11 @@ const TableView = ({ ...@@ -42,7 +42,11 @@ const TableView = ({
{reviewers.map(reviewer => ( {reviewers.map(reviewer => (
<TableRow key={reviewer.email}> <TableRow key={reviewer.email}>
<td> <td>
<Text>{`${get(reviewer, 'name', '')}`}</Text> <ActionLink
to={get(reviewer, 'profileUrl', 'https://www.publons.com/')}
>
{`${get(reviewer, 'name', '')}`}
</ActionLink>
</td> </td>
<td> <td>
<Text>{`${get(reviewer, 'affiliation', '')}`}</Text> <Text>{`${get(reviewer, 'affiliation', '')}`}</Text>
......
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