move getDisplayName to content-manager level

This commit is contained in:
Fernando Chavez 2023-07-24 10:56:32 +02:00
parent d0e299595a
commit 0eedce3a7e
7 changed files with 7 additions and 6 deletions

View File

@ -1,11 +1,11 @@
import React from 'react';
import { Combobox, ComboboxOption } from '@strapi/design-system';
import { getDisplayName } from '@strapi/helper-plugin';
import PropTypes from 'prop-types';
import { useIntl } from 'react-intl';
import { useAdminUsers } from '../../../hooks/useAdminUsers';
import { getDisplayName } from '../../utils';
const AdminUsersFilter = ({ value, onChange }) => {
const { formatMessage } = useIntl();

View File

@ -1,10 +1,11 @@
import React from 'react';
import { useQueryParams, getDisplayName } from '@strapi/helper-plugin';
import { useQueryParams } from '@strapi/helper-plugin';
import PropTypes from 'prop-types';
import { useIntl } from 'react-intl';
import { useAdminUsers } from '../../../hooks/useAdminUsers';
import { getDisplayName } from '../../utils';
import { AdminUsersFilter } from './AdminUsersFilter';
import Filters from './Filters';

View File

@ -1,11 +1,11 @@
import React, { useRef } from 'react';
import { Box, Divider, Flex, Typography } from '@strapi/design-system';
import { useCMEditViewDataManager, getDisplayName } from '@strapi/helper-plugin';
import { useCMEditViewDataManager } from '@strapi/helper-plugin';
import PropTypes from 'prop-types';
import { useIntl } from 'react-intl';
import { getTrad } from '../../../utils';
import { getTrad, getDisplayName } from '../../../utils';
import getUnits from './utils/getUnits';

View File

@ -15,7 +15,6 @@ import {
useFetchClient,
useAPIErrorHandler,
useQueryParams,
getDisplayName,
} from '@strapi/helper-plugin';
import { Trash, Duplicate, Pencil } from '@strapi/icons';
import { AxiosError } from 'axios';
@ -27,6 +26,7 @@ import { useEnterprise } from '../../../../../hooks/useEnterprise';
import { getFullName } from '../../../../../utils';
import { usePluginsQueryParams } from '../../../../hooks';
import { getTrad } from '../../../../utils';
import { getDisplayName } from '../../../../utils';
import CellContent from '../CellContent';
const REVIEW_WORKFLOW_COLUMNS_CE = () => null;

View File

@ -13,3 +13,4 @@ export { default as mergeMetasWithSchema } from './mergeMetasWithSchema';
export { default as removeKeyInObject } from './removeKeyInObject';
export { default as removePasswordFieldsFromData } from './removePasswordFieldsFromData';
export { default as createYupSchema } from './schema';
export { getDisplayName } from './getDisplayName';

View File

@ -103,7 +103,6 @@ export { default as prefixPluginTranslations } from './utils/prefixPluginTransla
export { default as pxToRem } from './utils/pxToRem';
export { default as request } from './utils/request';
export { default as setHexOpacity } from './utils/setHexOpacity';
export { getDisplayName } from './utils/getDisplayName';
export * from './utils/stopPropagation';
export { default as translatedErrors } from './utils/translatedErrors';
export { default as wrapAxiosInstance } from './utils/wrapAxiosInstance';