Skip to content

Commit

Permalink
chore: removed volto imports from barrel files
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliaghisini committed Dec 24, 2024
1 parent dee3818 commit 356f77a
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
11 changes: 5 additions & 6 deletions src/components/DropdownMenu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@ import { defineMessages, useIntl } from 'react-intl';
import { Segment, Container, Icon, Grid, Button } from 'semantic-ui-react';
import { map } from 'lodash';
import cx from 'classnames';
import { ConditionalLink } from '@plone/volto/components';
import ConditionalLink from '@plone/volto/components/manage/ConditionalLink/ConditionalLink';
import {
flattenToAppURL,
getBlocksFieldname,
getBlocksLayoutFieldname,
hasBlocksData,
getBaseUrl,
} from '@plone/volto/helpers';
} from '@plone/volto/helpers/Blocks/Blocks';
import { flattenToAppURL, getBaseUrl } from '@plone/volto/helpers/Url/Url';
import config from '@plone/volto/registry';

import './dropdownmenu.css';
Expand All @@ -38,8 +37,8 @@ const DropdownMenu = ({ menu, open = false, closeMenu }) => {
menu.navigationRoot?.length === 1
? 8
: menu.navigationRoot?.length > 2 || menu.navigationRoot?.length === 0
? 12
: 6;
? 12
: 6;
let hasBlocks = hasBlocksData(menu);
if (menu?.blocks && Object.keys(menu.blocks).length === 1) {
let b = menu.blocks[Object.keys(menu.blocks)[0]];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import cx from 'classnames';
import OutsideClickHandler from 'react-outside-click-handler';
import config from '@plone/volto/registry';

import { flattenToAppURL } from '@plone/volto/helpers';
import { flattenToAppURL } from '@plone/volto/helpers/Url/Url';

import DropdownMenu from '../../../../components/DropdownMenu';
import { getDropdownMenuNavitems } from '../../../../actions';
Expand Down
6 changes: 3 additions & 3 deletions src/widget/MenuConfigurationForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import { defineMessages, useIntl } from 'react-intl';
import { v4 as uuid } from 'uuid';
import { isEmpty } from 'lodash';
import { Form as UIForm, Grid, Button } from 'semantic-ui-react';
import Sidebar from '@plone/volto/components/manage/Sidebar/Sidebar';
import { Form } from '@plone/volto/components/manage/Form';
import {
Form,
TextWidget,
CheckboxWidget,
ObjectBrowserWidget,
Sidebar,
} from '@plone/volto/components';
} from '@plone/volto/components/manage/Widgets';

import { RadioWidget } from 'volto-dropdownmenu/widget';
import { Portal } from 'react-portal';
Expand Down
3 changes: 2 additions & 1 deletion src/widget/MenuConfigurationWidget.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ import {
Segment,
Header,
} from 'semantic-ui-react';
import { TextWidget, Component } from '@plone/volto/components';
import Component from '@plone/volto/components/theme/Component/Component';
import { TextWidget } from '@plone/volto/components/manage/Widgets';
import { flattenToAppURL } from '@plone/volto/helpers/Url/Url';

import './menu_configuration.css';
Expand Down
2 changes: 1 addition & 1 deletion src/widget/RadioWidget.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { Button } from 'semantic-ui-react';
import { FormFieldWrapper } from '@plone/volto/components';
import { FormFieldWrapper } from '@plone/volto/components/manage/Widgets';
import cx from 'classnames';
import './radio_widget.css';

Expand Down

0 comments on commit 356f77a

Please sign in to comment.