mirror of
https://github.com/strapi/strapi.git
synced 2025-11-03 03:17:11 +00:00
move getDisplayName to content-manager level
This commit is contained in:
parent
d0e299595a
commit
0eedce3a7e
@ -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();
|
||||
|
||||
@ -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';
|
||||
|
||||
@ -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';
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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';
|
||||
|
||||
@ -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';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user