woocommerce/plugins/woocommerce-admin/client/task-lists/fills/experimental-shipping-recom.../utils.ts

14 lines
294 B
TypeScript

/**
* External dependencies
*/
import { getAdminLink } from '@woocommerce/settings';
export const redirectToWCSSettings = () => {
if ( window?.location ) {
window.location.href = getAdminLink(
'admin.php?page=wc-settings&tab=shipping&section=woocommerce-services-settings'
);
}
};