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:
parent
7187c8dff0
commit
d406eeb299
|
@ -7,8 +7,6 @@ import { useEffect } from '@wordpress/element';
|
||||||
/**
|
/**
|
||||||
* Internal dependencies
|
* Internal dependencies
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import './product-page.scss';
|
|
||||||
import { ProductForm } from './product-form';
|
import { ProductForm } from './product-form';
|
||||||
|
|
||||||
const AddProductPage: React.FC = () => {
|
const AddProductPage: React.FC = () => {
|
||||||
|
|
|
@ -16,9 +16,8 @@ import { useParams } from 'react-router-dom';
|
||||||
/**
|
/**
|
||||||
* Internal dependencies
|
* Internal dependencies
|
||||||
*/
|
*/
|
||||||
import { ProductFormLayout } from './layout/product-form-layout';
|
|
||||||
import './product-page.scss';
|
|
||||||
import { ProductForm } from './product-form';
|
import { ProductForm } from './product-form';
|
||||||
|
import { ProductFormLayout } from './layout/product-form-layout';
|
||||||
|
|
||||||
const EditProductPage: React.FC = () => {
|
const EditProductPage: React.FC = () => {
|
||||||
const { productId } = useParams();
|
const { productId } = useParams();
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: minor
|
||||||
|
Type: fix
|
||||||
|
|
||||||
|
Fix WooCommerce Admin client React build warnings and remove unnecessary scss imports.
|
Loading…
Reference in New Issue