Fix react chunk build warnings (#35930)

* Reorganize imports to fix build warnings and remove overlapping css import

* Add changelog

* Update changelog
This commit is contained in:
louwie17 2022-12-12 09:43:34 -04:00 committed by GitHub
parent 7187c8dff0
commit d406eeb299
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 4 deletions

View File

@ -7,8 +7,6 @@ import { useEffect } from '@wordpress/element';
/**
* Internal dependencies
*/
import './product-page.scss';
import { ProductForm } from './product-form';
const AddProductPage: React.FC = () => {

View File

@ -16,9 +16,8 @@ import { useParams } from 'react-router-dom';
/**
* Internal dependencies
*/
import { ProductFormLayout } from './layout/product-form-layout';
import './product-page.scss';
import { ProductForm } from './product-form';
import { ProductFormLayout } from './layout/product-form-layout';
const EditProductPage: React.FC = () => {
const { productId } = useParams();

View File

@ -0,0 +1,4 @@
Significance: minor
Type: fix
Fix WooCommerce Admin client React build warnings and remove unnecessary scss imports.