Skip to content

Commit

Permalink
Merge branch 'enhancement/9135-selection-panel-8-selection' of github…
Browse files Browse the repository at this point in the history
….com:google/site-kit-wp into enhancement/9135-selection-panel-8-selection.
  • Loading branch information
tofumatt committed Oct 10, 2024
2 parents 644e4d9 + 0bdc4fc commit 4424085
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ import { ERROR_CODE_MISSING_REQUIRED_SCOPE } from '../../../util/errors';
import useViewContext from '../../../hooks/useViewContext';
import { trackEvent } from '../../../util';
import { SelectionPanelFooter } from '../../SelectionPanel';
import { isFeatureEnabled } from '../../../features';
import { useFeature } from '../../../hooks/useFeature';

export default function Footer( {
isOpen,
Expand All @@ -62,9 +62,7 @@ export default function Footer( {
onNavigationToOAuthURL = () => {},
} ) {
const viewContext = useViewContext();
const isConversionReportingEnabled = isFeatureEnabled(
'conversionReporting'
);
const isConversionReportingEnabled = useFeature( 'conversionReporting' );

const selectedMetrics = useSelect( ( select ) =>
select( CORE_FORMS ).getValue(
Expand Down
2 changes: 1 addition & 1 deletion assets/js/googlesitekit/widgets/datastore/widgets.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export const actions = {
* @param {string|Array.<string>} [settings.modules] Optional. Widget's associated modules.
* @param {Function} [settings.isActive] Optional. Callback function to determine if the widget is active.
* @param {Function} [settings.isPreloaded] Optional. Callback function to determine if the widget should be preloaded if not active (requires isActive).
* @param {string|Array.<string>} [settings.hideOnBreakpoints] Optional. Hide widget on selected breakpoints. One of: "BREAKPOINT_SMALL", "BREAKPOINT_TABLET", "BREAKPOINT_DESKTOP", "BREAKPOINT_XLARGE".
* @param {Array.<string>} [settings.hideOnBreakpoints] Optional. Hide widget on selected breakpoints. Array with any of: `BREAKPOINT_SMALL`, `BREAKPOINT_TABLET`, `BREAKPOINT_DESKTOP`, `BREAKPOINT_XLARGE`.
* @return {Object} Redux-style action.
*/
registerWidget(
Expand Down
2 changes: 1 addition & 1 deletion assets/js/googlesitekit/widgets/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export function createWidgets( registry ) {
* @param {string|Array.<string>} [settings.width] Optional. Widget's maximum width to occupy. Default is: "quarter". One of: "quarter", "half", "full".
* @param {boolean} [settings.wrapWidget] Optional. Whether to wrap the component with the <Widget> wrapper. Default is: true.
* @param {string|Array.<string>} [settings.modules] Optional. Widget's associated moduels.
* @param {string|Array.<string>} [settings.hideOnBreakpoints] Optional. Hide widget on selected breakpoints. One of: "BREAKPOINT_SMALL", "BREAKPOINT_TABLET", "BREAKPOINT_DESKTOP", "BREAKPOINT_XLARGE".
* @param {Array.<string>} [settings.hideOnBreakpoints] Optional. Hide widget on selected breakpoints. Array with any of: `BREAKPOINT_SMALL`, `BREAKPOINT_TABLET`, `BREAKPOINT_DESKTOP`, `BREAKPOINT_XLARGE`.
* @param {(string|Array)} [widgetAreaSlugs] Optional. Widget area slug(s).
*/
registerWidget( slug, settings, widgetAreaSlugs ) {
Expand Down

0 comments on commit 4424085

Please sign in to comment.