diff --git a/packages/strapi-plugin-content-manager/admin/src/components/RelationDPState/index.js b/packages/strapi-helper-plugin/lib/src/components/RelationDPState/index.js similarity index 100% rename from packages/strapi-plugin-content-manager/admin/src/components/RelationDPState/index.js rename to packages/strapi-helper-plugin/lib/src/components/RelationDPState/index.js diff --git a/packages/strapi-helper-plugin/lib/src/index.js b/packages/strapi-helper-plugin/lib/src/index.js index 19d0f7aaa3..bd544840a4 100644 --- a/packages/strapi-helper-plugin/lib/src/index.js +++ b/packages/strapi-helper-plugin/lib/src/index.js @@ -81,6 +81,7 @@ export { default as NotFound } from './components/NotFound'; export { default as OverlayBlocker } from './components/OverlayBlocker'; export { default as PageFooter } from './components/PageFooter'; export { default as PluginHeader } from './components/PluginHeader'; +export { default as RelationDPState } from './components/RelationDPState'; export { default as PopUpWarning } from './components/PopUpWarning'; export { default as Row } from './components/Row'; export { default as SearchInfo } from './components/SearchInfo'; diff --git a/packages/strapi-plugin-content-manager/admin/src/components/SelectMany/Relation.js b/packages/strapi-plugin-content-manager/admin/src/components/SelectMany/Relation.js index 17190e53b2..428454616d 100644 --- a/packages/strapi-plugin-content-manager/admin/src/components/SelectMany/Relation.js +++ b/packages/strapi-plugin-content-manager/admin/src/components/SelectMany/Relation.js @@ -4,9 +4,9 @@ import PropTypes from 'prop-types'; import { Link, useLocation } from 'react-router-dom'; import { isEmpty } from 'lodash'; import { useIntl } from 'react-intl'; +import { RelationDPState } from 'strapi-helper-plugin'; import { getDisplayedValue, getTrad } from '../../utils'; import IconRemove from '../../assets/images/icon_remove.svg'; -import RelationDPState from '../RelationDPState'; import { Span } from './components'; /* eslint-disable jsx-a11y/no-noninteractive-element-interactions */ diff --git a/packages/strapi-plugin-content-manager/admin/src/components/SelectOne/SingleValue.js b/packages/strapi-plugin-content-manager/admin/src/components/SelectOne/SingleValue.js index a70696c648..b5de3dc632 100644 --- a/packages/strapi-plugin-content-manager/admin/src/components/SelectOne/SingleValue.js +++ b/packages/strapi-plugin-content-manager/admin/src/components/SelectOne/SingleValue.js @@ -3,8 +3,8 @@ import { components } from 'react-select'; import PropTypes from 'prop-types'; import { get, has, isEmpty } from 'lodash'; import { Flex, Padded, Text } from '@buffetjs/core'; +import { RelationDPState } from 'strapi-helper-plugin'; import { getDisplayedValue } from '../../utils'; -import RelationDPState from '../RelationDPState'; const SingleValue = props => { const Component = components.SingleValue; diff --git a/packages/strapi-plugin-content-manager/admin/src/components/SelectWrapper/Option.js b/packages/strapi-plugin-content-manager/admin/src/components/SelectWrapper/Option.js index b699640fa0..9ce75047f9 100644 --- a/packages/strapi-plugin-content-manager/admin/src/components/SelectWrapper/Option.js +++ b/packages/strapi-plugin-content-manager/admin/src/components/SelectWrapper/Option.js @@ -5,8 +5,8 @@ import { useIntl } from 'react-intl'; import PropTypes from 'prop-types'; import { get, has, isEmpty } from 'lodash'; import { Flex, Text } from '@buffetjs/core'; +import { RelationDPState } from 'strapi-helper-plugin'; import { getDisplayedValue, getTrad } from '../../utils'; -import RelationDPState from '../RelationDPState'; const TextGrow = styled(Text)` flex-grow: 2;