Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
ipatate committed Aug 16, 2020
1 parent 3b64132 commit b7f7964
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
10 changes: 5 additions & 5 deletions gatsby-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau

var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));

var React = require('react');
var React = require("react");

var SnipcartProvider = require('./components/SnipcartProvider').default;
var SnipcartProvider = require("./components/SnipcartProvider").default;
/**
* wrapp app with provider for dispatch cart and customer infos
*/
Expand All @@ -20,10 +20,10 @@ exports.wrapRootElement = function (_ref, pluginOptions) {
}

var _options = (0, _extends2.default)({}, {
version: '3.0.15',
version: "3.0.19",
locales: {},
defaultLang: 'en'
}, pluginOptions);
defaultLang: "en"
}, {}, pluginOptions);

return /*#__PURE__*/React.createElement(SnipcartProvider, _options, element);
};
6 changes: 3 additions & 3 deletions gatsby-ssr.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ exports.onRenderBody = function (_ref, pluginOptions) {
}

var _options = (0, _extends2.default)({}, {
version: "3.0.15",
version: "3.0.19",
innerHTML: "",
openCartOnAdd: true
}, pluginOptions); // find public api key in options plugin or environment variable
}, {}, pluginOptions); // find public api key in options plugin or environment variable


var publicApiKey = GATSBY_SNIPCART_API_KEY || _options.publicApiKey;
Expand Down Expand Up @@ -83,7 +83,7 @@ exports.wrapRootElement = function (_ref2, pluginOptions) {
version: "3.0.15",
locales: {},
defaultLang: "en"
}, pluginOptions);
}, {}, pluginOptions);

return /*#__PURE__*/React.createElement(SnipcartProvider, _options, element);
};
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,27 +24,27 @@ exports.SnipcartContext = SnipcartContext;
var reducer = function reducer(state, action) {
switch (state, action.type) {
case "setReady":
return (0, _extends2.default)({}, state, {
return (0, _extends2.default)({}, state, {}, {
ready: action.payload
});

case "setQuantity":
return (0, _extends2.default)({}, state, {
return (0, _extends2.default)({}, state, {}, {
cartQuantity: action.payload
});

case "setUserStatus":
return (0, _extends2.default)({}, state, {
return (0, _extends2.default)({}, state, {}, {
userStatus: action.payload
});

case "setTotal":
return (0, _extends2.default)({}, state, {
return (0, _extends2.default)({}, state, {}, {
cartTotal: action.payload
});

case "setSubTotal":
return (0, _extends2.default)({}, state, {
return (0, _extends2.default)({}, state, {}, {
cartSubTotal: action.payload
});

Expand Down

0 comments on commit b7f7964

Please sign in to comment.