Skip to content

Commit b12df38

Browse files
committed
Use searchName constants
1 parent 4548504 commit b12df38

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

src/components/pages/AccountPage.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { canCreate, canRead } from '../../helpers/permissionHelpers';
1212
import AdminTabButtonBar from '../admin/AdminTabButtonBar';
1313
import AccountSearchBar from '../admin/AccountSearchBar';
1414
import styles from '../../../styles/cspace-ui/AdminTab.css';
15+
import { SEARCH_RESULT_ACCOUNT_PAGE } from '../../constants/searchNames';
1516

1617
const propTypes = {
1718
history: PropTypes.shape({
@@ -295,7 +296,7 @@ export default class AccountPage extends Component {
295296
isFiltered={!!filterValue}
296297
linkItems={false}
297298
listType="account"
298-
name="accountPage"
299+
name={SEARCH_RESULT_ACCOUNT_PAGE}
299300
pageSizeOptionListName="searchResultPagePageSizes"
300301
searchDescriptor={searchDescriptor}
301302
title={title}

src/components/pages/AuthRolePage.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { canCreate, canRead } from '../../helpers/permissionHelpers';
1212
import AdminTabButtonBar from '../admin/AdminTabButtonBar';
1313
import AuthRoleSearchBar from '../admin/AuthRoleSearchBar';
1414
import styles from '../../../styles/cspace-ui/AdminTab.css';
15+
import { SEARCH_RESULT_AUTH_ROLE_PAGE } from '../../constants/searchNames';
1516

1617
const propTypes = {
1718
history: PropTypes.shape({
@@ -282,7 +283,7 @@ export default class AuthRolePage extends Component {
282283
isFiltered={!!filterValue}
283284
linkItems={false}
284285
listType="role"
285-
name="authRolePage"
286+
name={SEARCH_RESULT_AUTH_ROLE_PAGE}
286287
pageSizeOptionListName="searchResultPagePageSizes"
287288
searchDescriptor={searchDescriptor}
288289
title={title}

src/components/record/TermsUsedPanel.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import Immutable from 'immutable';
44
import { defineMessages, FormattedMessage } from 'react-intl';
55
import { getUpdatedTimestamp } from '../../helpers/recordDataHelpers';
66
import SearchPanelContainer from '../../containers/search/SearchPanelContainer';
7+
import { SEARCH_RESULT_TERMS_USED_PANEL } from '../../constants/searchNames';
78

89
const messages = defineMessages({
910
title: {
@@ -121,7 +122,7 @@ export default class TermsUsedPanel extends Component {
121122
config={config}
122123
csid={csid}
123124
listType="authRef"
124-
name="termsUsedPanel"
125+
name={SEARCH_RESULT_TERMS_USED_PANEL}
125126
searchDescriptor={searchDescriptor}
126127
recordType={recordType}
127128
vocabulary={vocabulary}

src/components/record/UsedByPanel.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import Immutable from 'immutable';
44
import { defineMessages, FormattedMessage } from 'react-intl';
55
import { getUpdatedTimestamp } from '../../helpers/recordDataHelpers';
66
import SearchPanelContainer from '../../containers/search/SearchPanelContainer';
7+
import { SEARCH_RESULT_USED_BY_PANEL } from '../../constants/searchNames';
78

89
const messages = defineMessages({
910
title: {
@@ -142,7 +143,7 @@ export default class UsedByPanel extends Component {
142143
config={config}
143144
csid={csid}
144145
listType="refDoc"
145-
name="usedByPanel"
146+
name={SEARCH_RESULT_USED_BY_PANEL}
146147
searchDescriptor={searchDescriptor}
147148
recordType={recordType}
148149
vocabulary={vocabulary}

0 commit comments

Comments
 (0)