Move RelationDPStateComponent to helper plugin

Signed-off-by: soupette <cyril.lpz@gmail.com>
This commit is contained in:
soupette 2021-03-12 15:57:04 +01:00
parent a54ae6d74f
commit c652aaf312
5 changed files with 4 additions and 3 deletions

View File

@ -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';

View File

@ -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 */

View File

@ -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;

View File

@ -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;