diff --git a/src/customizations/volto/components/theme/Footer/Footer.jsx b/src/customizations/volto/components/theme/Footer/Footer.jsx index 32ee9b61..06f3aef2 100644 --- a/src/customizations/volto/components/theme/Footer/Footer.jsx +++ b/src/customizations/volto/components/theme/Footer/Footer.jsx @@ -1,9 +1,10 @@ +import { useVoltoSlotsEditor } from '@plone-collective/volto-slots-editor'; import { Icon } from '@plone/volto/components'; import { flattenToAppURL, isInternalURL } from '@plone/volto/helpers'; import config from '@plone/volto/registry'; import cx from 'classnames'; import { getTextColourUtilityForPaletteName } from 'nsw-design-system-plone6/helpers'; -import React, { useEffect } from 'react'; +import { useEffect } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import { useDispatch, useSelector } from 'react-redux'; import { Link } from 'react-router-dom'; @@ -59,7 +60,8 @@ function Footer() { const dispatch = useDispatch(); const subFooter = useSelector((state) => state.subFooter?.result); const siteSettings = useSelector((state) => state.nswSiteSettings.data); - const SlotDisplay = config.getComponent({ + const aocSlotData = useVoltoSlotsEditor('aoc'); + const AocSlotDisplay = config.getComponent({ name: 'VoltoBlocksSlotDisplay', }).component; @@ -89,18 +91,19 @@ function Footer() { const upperFooterTextColour = getTextColourUtilityForPaletteName( upperFooterColour, ); + const aocFooterColour = siteSettings?.nsw_independent_aoc_colour; + const aocTextColour = getTextColourUtilityForPaletteName(aocFooterColour); return ( <>