@@ -42,13 +42,11 @@ import { Button, SpinnerButton } from 'googlesitekit-components';
4242import { safelySort } from '@/js/util' ;
4343import { MODULES_ANALYTICS_4 } from '@/js/modules/analytics-4/datastore/constants' ;
4444import PreviewBlock from '@/js/components/PreviewBlock' ;
45- import Notice from '@/js/components/Notice' ;
4645
4746export default function SelectionPanelFooter ( {
4847 savedItemSlugs = [ ] ,
4948 selectedItemSlugs = [ ] ,
5049 saveSettings = ( ) => { } ,
51- itemLimitError,
5250 minSelectedItemCount = 0 ,
5351 maxSelectedItemCount = 0 ,
5452 isBusy,
@@ -150,14 +148,7 @@ export default function SelectionPanelFooter( {
150148 return (
151149 < footer className = "googlesitekit-selection-panel-footer" >
152150 < div className = "googlesitekit-selection-panel-footer__content" >
153- { haveSettingsChanged && itemLimitError ? (
154- < Notice
155- type = { Notice . TYPES . ERROR }
156- description = { itemLimitError }
157- />
158- ) : (
159- itemCountElement
160- ) }
151+ { itemCountElement }
161152 < div className = "googlesitekit-selection-panel-footer__actions" >
162153 < Button
163154 onClick = { onCancelClick }
@@ -188,7 +179,6 @@ SelectionPanelFooter.propTypes = {
188179 savedItemSlugs : PropTypes . array ,
189180 selectedItemSlugs : PropTypes . array ,
190181 saveSettings : PropTypes . func ,
191- itemLimitError : PropTypes . string ,
192182 minSelectedItemCount : PropTypes . number ,
193183 maxSelectedItemCount : PropTypes . number ,
194184 isBusy : PropTypes . bool ,
0 commit comments