Skip to content

Commit 35cb6db

Browse files
committed
Move cell props to a utility function.
1 parent 4153e5f commit 35cb6db

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • assets/js/modules/search-console/components/dashboard/SearchFunnelWidgetGA4/Overview

assets/js/modules/search-console/components/dashboard/SearchFunnelWidgetGA4/Overview/OptionalCells.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,11 @@ import {
4040
BREAKPOINT_SMALL,
4141
useBreakpoint,
4242
} from '../../../../../../hooks/useBreakpoint';
43+
import { getCellProps } from './utils';
4344

4445
export 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( {
110112
OptionalCells.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,

0 commit comments

Comments
 (0)