Skip to content

Commit

Permalink
style: don't use tags for funder acknowledgements
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Oct 16, 2023
1 parent bf1b4f5 commit ebd938c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/js/components/Provenance/Tables/AcknowledgesTable.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from 'react';
import { Tag } from 'antd';

import BaseProvenanceTable from './BaseProvenanceTable';
import LinkIfUrl from '../../Util/LinkIfUrl';
Expand All @@ -24,10 +23,11 @@ const AcknowledgesTable = ({ acknowledges }: AcknowledgesTableProps) => {
dataIndex: 'funders',
render: (_, { funders }) =>
funders.map((f, i) => (
<Tag key={i} color="cyan">
<React.Fragment key={i}>
<LinkIfUrl text={f.name} />
{f.abbreviation ? `(${t(f.abbreviation)})` : ''}
</Tag>
{f.abbreviation ? ` (${t(f.abbreviation)})` : ''}
{i < funders.length - 1 ? '; ' : ''}
</React.Fragment>
)),
},
]}
Expand Down

0 comments on commit ebd938c

Please sign in to comment.