File tree Expand file tree Collapse file tree
assets/js/modules/search-console/components/dashboard/SearchFunnelWidgetGA4/Overview Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,12 +40,11 @@ import {
4040 BREAKPOINT_SMALL ,
4141 useBreakpoint ,
4242} from '../../../../../../hooks/useBreakpoint' ;
43+ import { getCellProps } from './utils' ;
4344
4445export default function OptionalCells ( {
4546 canViewSharedAnalytics4,
4647 error,
47- halfCellProps,
48- quarterCellProps,
4948 showGA4,
5049 showConversionsCTA,
5150 showRecoverableGA4,
@@ -62,6 +61,9 @@ export default function OptionalCells( {
6261 const analyticsModuleActiveAndConnected =
6362 ga4ModuleActive && ga4ModuleConnected ;
6463
64+ const { quarterCellProps, halfCellProps } =
65+ getCellProps ( showConversionsCTA ) ;
66+
6567 return (
6668 < Fragment >
6769 { canViewSharedAnalytics4 &&
@@ -110,8 +112,6 @@ export default function OptionalCells( {
110112OptionalCells . propTypes = {
111113 canViewSharedAnalytics4 : PropTypes . bool . isRequired ,
112114 error : PropTypes . object ,
113- halfCellProps : PropTypes . object . isRequired ,
114- quarterCellProps : PropTypes . object . isRequired ,
115115 showGA4 : PropTypes . bool . isRequired ,
116116 showConversionsCTA : PropTypes . bool . isRequired ,
117117 showRecoverableGA4 : PropTypes . bool ,
You can’t perform that action at this time.
0 commit comments