Skip to content

Commit

Permalink
Merge pull request Sage-Bionetworks#422 from jay-hodgson/PORTALS-2780b
Browse files Browse the repository at this point in the history
PORTALS-2780: use different person icon on details page
  • Loading branch information
jay-hodgson committed Aug 21, 2023
2 parents de2f5b3 + 5e772f6 commit fa1854f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import {
ColumnMultiValueFunction,
ColumnSingleValueFilterOperator,
} from '@sage-bionetworks/synapse-types'
import personGraySvg from './style/PersonGray.svg'

const routes: GenericRoute[] = [
{
Expand Down Expand Up @@ -284,6 +285,9 @@ const routes: GenericRoute[] = [
isHeader: true,
sqlOperator: ColumnSingleValueFilterOperator.EQUAL,
...peopleCardConfiguration,
iconOptions: {
Person: personGraySvg,
},
secondaryLabelLimit: Infinity,
sql: peopleSql,
columnAliases,
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,12 @@ export const peopleSchema: GenericCardSchema = {
],
}

const iconOptions: IconOptions = {
Person: personSvg,
}

export const peopleCardConfiguration: CardConfiguration = {
type: SynapseConstants.GENERIC_CARD,
secondaryLabelLimit: 3,
iconOptions,
iconOptions: {
Person: personSvg,
},
genericCardSchema: peopleSchema,
titleLinkConfig: {
isMarkdown: false,
Expand Down

0 comments on commit fa1854f

Please sign in to comment.