fix request access notif page
This commit is contained in:
parent
f35cea5ba6
commit
037575409d
1 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,7 @@ class NotificationPage extends Component {
|
||||||
const request = notification.data.object
|
const request = notification.data.object
|
||||||
const map = notification.data.map
|
const map = notification.data.map
|
||||||
const subject = notification.type === MAP_ACCESS_REQUEST ?
|
const subject = notification.type === MAP_ACCESS_REQUEST ?
|
||||||
(<span><span style={{ fontWeight: 'bold' }} className='requesterName'>{request.user.name}</span> wants to collaborate on map <span style={{fontWeight: 'bold'}}>{ map.name }</span></span>)
|
(<span><span style={{ fontWeight: 'bold' }} className='requesterName'>{notification.actor.name}</span> wants to collaborate on map <span style={{fontWeight: 'bold'}}>{ map.name }</span></span>)
|
||||||
: notification.subject
|
: notification.subject
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
|
@ -62,7 +62,7 @@ class NotificationPage extends Component {
|
||||||
</p>
|
</p>
|
||||||
<Link to={`/maps/${map.id}`}>Go to map</Link>
|
<Link to={`/maps/${map.id}`}>Go to map</Link>
|
||||||
|
|
||||||
<Link to={`/explore/mapper/${request.user.id}`}>View mapper profile</Link>
|
<Link to={`/explore/mapper/${notification.actor.id}`}>View mapper profile</Link>
|
||||||
</div>}
|
</div>}
|
||||||
{notification.type !== MAP_ACCESS_REQUEST && <NotificationBody notification={notification} />}
|
{notification.type !== MAP_ACCESS_REQUEST && <NotificationBody notification={notification} />}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue