Skip to content

Commit

Permalink
fix(tags): Replace customizations of volto-widgets-view with config r…
Browse files Browse the repository at this point in the history
…egistry
  • Loading branch information
avoinea committed Jun 3, 2022
1 parent 7a2bfa8 commit 8f8c6fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import InpageNavigation from '@eeacms/volto-eea-design-system/ui/InpageNavigatio
import installCustomTitle from '@eeacms/volto-eea-website-theme/components/manage/Blocks/Title';
import CustomCSS from '@eeacms/volto-eea-website-theme/components/theme/CustomCSS/CustomCSS';
import DraftBackground from '@eeacms/volto-eea-website-theme/components/theme/DraftBackground/DraftBackground';
import { TokenWidget } from '@eeacms/volto-eea-website-theme/components/theme/Widgets/TokenWidget';

const applyConfig = (config) => {
config.settings.eea = {
Expand All @@ -19,6 +20,10 @@ const applyConfig = (config) => {
config.blocks.blocksConfig.description.className =
'documentDescription eea callout';

// Custom TokenWidget
config.widgets.views.id.subjects = TokenWidget;
config.widgets.views.widget.tags = TokenWidget;

// apply inPage navigation
config.settings.appExtras = [
...(config.settings.appExtras || []),
Expand Down

0 comments on commit 8f8c6fc

Please sign in to comment.