Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge branch 'master' into rnmobile/improve-perf-video
  • Loading branch information
lukewalczak committed Jan 20, 2021
commit 72564f080a1220d86ac8c543f11faad1c56b6a37
8 changes: 2 additions & 6 deletions packages/components/src/query-controls/index.native.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
/**
* External dependencies
*/
import React from 'react';
/**
* WordPress dependencies
*/
import { __ } from '@wordpress/i18n';
import { useCallback } from '@wordpress/element';
import { useCallback, memo } from '@wordpress/element';

/**
* Internal dependencies
Expand Down Expand Up @@ -38,7 +34,7 @@ const options = [
},
];

const QueryControls = React.memo(
const QueryControls = memo(
( {
categoriesList,
selectedCategoryId,
Expand Down
6 changes: 3 additions & 3 deletions packages/components/src/range-control/index.native.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/**
* External dependencies
* WordPress dependencies
*/
import React from 'react';
import { memo } from '@wordpress/element';
/**
* Internal dependencies
*/
import RangeCell from '../mobile/bottom-sheet/range-cell';
import StepperCell from '../mobile/bottom-sheet/stepper-cell';

const RangeControl = React.memo(
const RangeControl = memo(
( {
className,
currentInput,
Expand Down
6 changes: 3 additions & 3 deletions packages/components/src/select-control/index.native.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/**
* External dependencies
* WordPress dependencies
*/
import React from 'react';
import { memo } from '@wordpress/element';
/**
* Internal dependencies
*/
import PickerCell from '../mobile/bottom-sheet/picker-cell';

const SelectControl = React.memo(
const SelectControl = memo(
( {
help,
instanceId,
Expand Down
6 changes: 3 additions & 3 deletions packages/components/src/toggle-control/index.native.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/**
* External dependencies
* WordPress dependencies
*/
import React from 'react';
import { memo } from '@wordpress/element';
/**
* Internal dependencies
*/
import SwitchCell from '../mobile/bottom-sheet/switch-cell';

const ToggleControl = React.memo(
const ToggleControl = memo(
( { label, checked, help, instanceId, className, onChange, ...props } ) => {
const id = `inspector-toggle-control-${ instanceId }`;

Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.