Skip to content

Commit

Permalink
Fix imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
robgietema committed Dec 23, 2024
1 parent 52adc1c commit 5b7d3f5
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useEffect, useRef } from 'react';
import PropTypes from 'prop-types';
import { Input } from 'semantic-ui-react';

import { Icon } from '@plone/volto/components';
import Icon from '@plone/volto/components/theme/Icon/Icon';
import FormFieldWrapper from '@plone/volto/components/manage/Widgets/FormFieldWrapper';

const HiddenWidget = (props) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,20 @@ import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { compose } from 'redux';
import { filter, map } from 'lodash';
import filter from 'lodash/filter';
import map from 'lodash/map';
import { injectIntl } from 'react-intl';
import {
getVocabFromHint,
getVocabFromField,
getVocabFromItems,
} from '@plone/volto/helpers';
} from '@plone/volto/helpers/Vocabularies/Vocabularies.js';
import { Radio } from 'semantic-ui-react';
import FormFieldWrapper from '@plone/volto/components/manage/Widgets/FormFieldWrapper';
import { getVocabulary, getVocabularyTokenTitle } from '@plone/volto/actions';
import {
getVocabulary,
getVocabularyTokenTitle,
} from '@plone/volto/actions/vocabularies/vocabularies';

/**
* RadioGroupWidget component class.
Expand Down
4 changes: 2 additions & 2 deletions packages/volto/src/components/manage/Widgets/TimeWidget.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, useIntl } from 'react-intl';
import loadable from '@loadable/component';
import { Icon } from '@plone/volto/components';
import Icon from '@plone/volto/components/theme/Icon/Icon';
import FormFieldWrapper from '@plone/volto/components/manage/Widgets/FormFieldWrapper';
import { toBackendLang } from '@plone/volto/helpers';
import { toBackendLang } from '@plone/volto/helpers/Utils/Utils';
import { injectLazyLibs } from '@plone/volto/helpers/Loadable/Loadable';

import clearSVG from '@plone/volto/icons/clear.svg';
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`TextWidget renders an empty hidden view widget component 1`] = `null`;
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`StaticTextWidget renders a static text view widget component 1`] = `
<p
className="metadata statictext widget"
dangerouslySetInnerHTML={
Object {
"__html": "<b>Foo bar</b>",
}
}
/>
`;

exports[`StaticTextWidget renders a static text view widget component with children 1`] = `
<p
className="metadata statictext widget"
dangerouslySetInnerHTML={
Object {
"__html": "<b>Foo bar</b>",
}
}
/>
`;

exports[`StaticTextWidget renders an empty static text view widget component 1`] = `null`;

0 comments on commit 5b7d3f5

Please sign in to comment.