Skip to content

Commit

Permalink
remove default formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
alisher-epam committed Nov 8, 2023
1 parent 8f71be6 commit 2ef422e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions lib/Donors/DonorsList.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { MultiColumnList } from '@folio/stripes/components';
import {
alignRowProps,
defaultColumnMapping,
defaultFormatter,
defaultVisibleColumns,
} from './constants';

Expand Down Expand Up @@ -41,6 +40,5 @@ DonorsList.propTypes = {

DonorsList.defaultProps = {
columnMapping: defaultColumnMapping,
formatter: defaultFormatter,
visibleColumns: defaultVisibleColumns,
};
6 changes: 0 additions & 6 deletions lib/Donors/constants.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { TextLink } from '@folio/stripes/components';
import { FormattedMessage } from 'react-intl';

export const defaultColumnMapping = {
Expand All @@ -12,11 +11,6 @@ export const defaultVisibleColumns = [
'code',
];

export const defaultFormatter = {
name: donor => <TextLink to={donor.id}>{donor.name}</TextLink>,
code: donor => donor.code,
};

export const alignRowProps = { alignLastColToEnd: true };

export const modalLabel = <FormattedMessage id="stripes-acq-components.donors.modal.title" />;
Expand Down

0 comments on commit 2ef422e

Please sign in to comment.