Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 1.06 KB

readme.md

File metadata and controls

48 lines (32 loc) · 1.06 KB

PWA Studio Newsletter extension

Footer component

Footer Component

Modal component

Modal Component

Requeriments

  • Magento 2.4.1

Extension options

props type default value
showOnFooter bool true
enableModal bool true

Install

1. Adding dependency

yarn add @wesleyalmd/pwa-studio-newsletter

2. Wrap module in your local-intercept.js

const { Targetables } = require('@magento/pwa-buildpack');

module.exports = targets => {
  const targetables = Targetables.using(targets);

  /** Newsletter extension */
  const {
    wrapNewsletterModuleTargetable
  } = require('@wesleyalmd/pwa-studio-newsletter/targets');
  wrapNewsletterModuleTargetable(targetables, {
    showOnFooter: true,
    enableModal: true
  });
};