0.1.0 • Published 2 years ago

@mcxbr/social-login v0.1.0

Weekly downloads
-
License
Commercial
Repository
-
Last release
2 years ago

PWA advanced-reviews

Installation

  1. Create an Empty PWA Studio Project by Scaffolding
  2. cd your_project/src
  3. mkdir @mcxbr
  4. copy module folder to @mcxbr
  5. run command from root directory
    • for development: yarn add link:src/@mcxbr/social-login
    • for production: yarn add file:src/@mcxbr/social-login

  6. Add call extend-intercept.js to local-intercept.js. Example:
const amSocialLoginIntercept = require('@mcxbr/social-login/targets/extend-intercept');

function localIntercept(targets) {
    amSocialLoginIntercept(targets);
}

module.exports = localIntercept;
  1. Run the Watch command: yarn watch.

Usage

Here's an example of basic usage:

import React from 'react';
import AmSocialLogin from '@mcxbr/social-login'

const MyComponent = (props) => {
  return (
    <div>
     <AmSocialLogin mode={'popup'} />
    </div>
  );
}

Props

Prop nameDescriptionDefault valueExample values
modeSocial login positionn/apopup, checkout_cart