From 802d8b853cdb29d081078570cf95db3cd24a87fe Mon Sep 17 00:00:00 2001 From: paul sealock Date: Wed, 4 Sep 2024 12:07:59 +1200 Subject: [PATCH] cleanup --- plugins/woocommerce-admin/client/settings/index.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/plugins/woocommerce-admin/client/settings/index.js b/plugins/woocommerce-admin/client/settings/index.js index 488297888e4..3fb35761878 100644 --- a/plugins/woocommerce-admin/client/settings/index.js +++ b/plugins/woocommerce-admin/client/settings/index.js @@ -4,8 +4,7 @@ import { getQuery, getNewPath } from '@woocommerce/navigation'; import { Button } from '@wordpress/components'; import { Icon, chevronLeft } from '@wordpress/icons'; -import { useEffect, useState } from '@wordpress/element'; -import clsx from 'clsx'; +import { useEffect } from '@wordpress/element'; /** * Internal dependencies @@ -57,6 +56,7 @@ const removeSettingsScripts = ( scripts ) => { }; const Settings = ( { params } ) => { + console.log( params ); useFullScreen( [ 'woocommerce-settings' ] ); const settingsData = window.wcSettings?.admin?.settingsPages; const sections = settingsData[ params.page ]?.sections; @@ -66,12 +66,6 @@ const Settings = ( { params } ) => { ? {} : sections[ section || '' ]; - // const [ sidebarVisisble, setSidebarVisisble ] = useState( false ); - // const [ sidebarContent, setSidebarContent ] = useState( null ); - // const toggleSidebar = () => { - // setSidebarVisisble( ! sidebarVisisble ); - // }; - // Be sure to render Settings slots when the params change. useEffect( () => { possiblyRenderSettingsSlots();