diff --git a/assets/js/src/settings/pages/woo_commerce/index.tsx b/assets/js/src/settings/pages/woo_commerce/index.tsx index ec5e68ab1d..5846cac488 100644 --- a/assets/js/src/settings/pages/woo_commerce/index.tsx +++ b/assets/js/src/settings/pages/woo_commerce/index.tsx @@ -2,12 +2,14 @@ import React from 'react'; import { SaveButton } from 'settings/components'; import EmailCustomizer from './email_customizer'; import CheckoutOptin from './checkout_optin'; +import SubscribeOldCustomers from './subscribe_old_customers'; export default function WooCommerce() { return (
+
); diff --git a/assets/js/src/settings/pages/woo_commerce/subscribe_old_customers.tsx b/assets/js/src/settings/pages/woo_commerce/subscribe_old_customers.tsx new file mode 100644 index 0000000000..6db3b4ed1c --- /dev/null +++ b/assets/js/src/settings/pages/woo_commerce/subscribe_old_customers.tsx @@ -0,0 +1,27 @@ +import React from 'react'; +import { t, onToggle } from 'common/functions'; +import { useSetting } from 'settings/store/hooks'; +import { Label, Inputs } from 'settings/components'; + +export default function SubscribeOldCustomers() { + const [enabled, setEnabled] = useSetting('mailpoet_subscribe_old_woocommerce_customers', 'enabled'); + + return ( + <> +