0.1.0 • Published 4 years ago
@mcxbr/social-login v0.1.0
PWA advanced-reviews
Installation
- Create an Empty PWA Studio Project by Scaffolding
cd your_project/srcmkdir @mcxbr- copy module folder to
@mcxbr - run command from root directory
- for development:
yarn add link:src/@mcxbr/social-login for production:
yarn add file:src/@mcxbr/social-login
- for development:
- 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;- 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 name | Description | Default value | Example values |
|---|---|---|---|
| mode | Social login position | n/a | popup, checkout_cart |
0.1.0
4 years ago