Skip to content

Commit

Permalink
update key in head titles
Browse files Browse the repository at this point in the history
  • Loading branch information
vashjs committed Dec 6, 2023
1 parent c13b596 commit dcff183
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';
import { ELECTRONIC_ACCESS_HEAD } from '../../../../PermissionsModal/constants/lists';
import { ELECTRONIC_ACCESS_HEAD_TITLES } from '../../../../PermissionsModal/constants/lists';
import css from './ElectronicAcess.css';

export const ElectronicAccessTable = ({ value }) => {
Expand All @@ -15,7 +15,7 @@ export const ElectronicAccessTable = ({ value }) => {
return (
<table className={css.ElectronicAccess}>
<thead>
<tr>{ELECTRONIC_ACCESS_HEAD.map((cell, index) => <th key={index}>{cell}</th>)}</tr>
<tr>{ELECTRONIC_ACCESS_HEAD_TITLES.map((cell) => <th key={cell}>{cell}</th>)}</tr>
</thead>
<tbody>
{tableBodyRows.map((row, index) => <tr key={index}>{row.map(cell => <td key={cell}>{cell}</td>)}</tr>)}
Expand Down
2 changes: 1 addition & 1 deletion src/components/PermissionsModal/constants/lists.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const PERMISSIONS_COLUMN_WIDTHS = {
status: '20',
};

export const ELECTRONIC_ACCESS_HEAD = [
export const ELECTRONIC_ACCESS_HEAD_TITLES = [
<FormattedMessage id="ui-bulk-edit.list.preview.electronicAccess.relationship" />,
<FormattedMessage id="ui-bulk-edit.list.preview.electronicAccess.uri" />,
<FormattedMessage id="ui-bulk-edit.list.preview.electronicAccess.linkText" />,
Expand Down

0 comments on commit dcff183

Please sign in to comment.