Skip to content

Commit

Permalink
Update per CR feedback.
Browse files Browse the repository at this point in the history
  • Loading branch information
zutigrm committed Oct 10, 2024
1 parent a2a949c commit 0bdc4fc
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 @@ -52,7 +52,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 @@ -61,9 +61,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 0bdc4fc

Please sign in to comment.