Skip to content

Commit

Permalink
Add link to profile page from people search results
Browse files Browse the repository at this point in the history
  • Loading branch information
lennym committed Jan 4, 2019
1 parent 652b5e1 commit 70de563
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pages/search/views/index.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import React, { Fragment } from 'react';
import { connect } from 'react-redux';
import { Datatable, FilterSummary, Header, Snippet } from '@asl/components';
import { Datatable, FilterSummary, Header, Snippet, Link } from '@asl/components';
import SearchPanel from '../../components/search-panel';

const formatters = {
lastName: {
format: (lastName, profile) => `${profile.firstName} ${lastName}`
format: (lastName, profile) => {
return <Link page="global.profile" profileId={profile.id} label={`${profile.firstName} ${lastName}`} />;
}
},
establishments: {
format: establishments => establishments.map(establishment => establishment.name).join(', ')
Expand Down

0 comments on commit 70de563

Please sign in to comment.