Skip to content

Commit

Permalink
Fix inventory input props after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuatf committed Oct 13, 2022
1 parent 4115353 commit 9298538
Showing 1 changed file with 2 additions and 7 deletions.
Expand Up @@ -13,7 +13,6 @@ import { recordEvent } from '@woocommerce/tracks';
* Internal dependencies
*/
import { getAdminSetting } from '~/utils/admin-settings';
import { getTextControlProps } from '../utils';

export const ManageStockSection: React.FC = () => {
const { getInputProps } = useFormContext< Product >();
Expand All @@ -25,9 +24,7 @@ export const ManageStockSection: React.FC = () => {
<TextControl
type="number"
label={ __( 'Current quantity', 'woocommerce' ) }
{ ...getTextControlProps( {
...getInputProps( 'stock_quantity' ),
} ) }
{ ...getInputProps( 'stock_quantity' ) }
min={ 0 }
/>
<TextControl
Expand All @@ -38,9 +35,7 @@ export const ManageStockSection: React.FC = () => {
__( '%d (store default)', 'woocommerce' ),
notifyLowStockAmount
) }
{ ...getTextControlProps( {
...getInputProps( 'low_stock_amount' ),
} ) }
{ ...getInputProps( 'low_stock_amount' ) }
min={ 0 }
/>
<span className="woocommerce-product-form__secondary-text">
Expand Down

0 comments on commit 9298538

Please sign in to comment.