Skip to content

Commit

Permalink
v2.6.0 build
Browse files Browse the repository at this point in the history
  • Loading branch information
10xSebastian committed Sep 7, 2021
1 parent 4613d9e commit 79df000
Show file tree
Hide file tree
Showing 8 changed files with 1,637 additions and 1,166 deletions.
886 changes: 519 additions & 367 deletions dist/cjs/index.bundle.js

Large diffs are not rendered by default.

47 changes: 26 additions & 21 deletions dist/cjs/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@

(function(l, r) { if (!l || l.getElementById('livereloadscript')) return; r = l.createElement('script'); r.async = 1; r.src = '//' + (self.location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1'; r.id = 'livereloadscript'; l.getElementsByTagName('head')[0].appendChild(r) })(self.document);
'use strict';

var React = require('react');
Expand Down Expand Up @@ -1578,15 +1576,18 @@ var round = (function (input) {
});

var ChangePaymentDialog = (function (props) {
var _useContext = React.useContext(RoutingContext),
allRoutes = _useContext.allRoutes,
setSelectedRoute = _useContext.setSelectedRoute;
var _useContext = React.useContext(ErrorContext),
setError = _useContext.setError;

var _useContext2 = React.useContext(RoutingContext),
allRoutes = _useContext2.allRoutes,
setSelectedRoute = _useContext2.setSelectedRoute;

var _useContext2 = React.useContext(ToTokenContext),
localValue = _useContext2.localValue;
var _useContext3 = React.useContext(ToTokenContext),
localValue = _useContext3.localValue;

var _useContext3 = React.useContext(depayReactDialogStack.NavigateStackContext),
navigate = _useContext3.navigate;
var _useContext4 = React.useContext(depayReactDialogStack.NavigateStackContext),
navigate = _useContext4.navigate;

var _useState = React.useState([]),
_useState2 = _slicedToArray(_useState, 2),
Expand Down Expand Up @@ -1617,7 +1618,7 @@ var ChangePaymentDialog = (function (props) {
route: route
};
}));
});
})["catch"](setError);
}, [allRoutes]);
React.useEffect(function () {
setCards(allPaymentRoutesWithData.map(function (payment, index) {
Expand Down Expand Up @@ -2256,14 +2257,17 @@ var RoutingProvider = (function (props) {
});

var ToTokenProvider = (function (props) {
var _useContext = React.useContext(WalletContext),
account = _useContext.account;
var _useContext = React.useContext(ErrorContext),
setError = _useContext.setError;

var _useContext2 = React.useContext(WalletContext),
account = _useContext2.account;

var _useContext2 = React.useContext(UpdateContext),
update = _useContext2.update;
var _useContext3 = React.useContext(UpdateContext),
update = _useContext3.update;

var _useContext3 = React.useContext(PaymentContext),
payment = _useContext3.payment;
var _useContext4 = React.useContext(PaymentContext),
payment = _useContext4.payment;

var _useState = React.useState(),
_useState2 = _slicedToArray(_useState, 2),
Expand Down Expand Up @@ -2313,10 +2317,8 @@ var ToTokenProvider = (function (props) {
depayLocalCurrency.Currency.fromUSD({
amount: USDValue,
apiKey: apiKey
}).then(function (localValue) {
setLocalValue(localValue);
});
});
}).then(setLocalValue)["catch"](setError);
})["catch"](setError);
};

React.useEffect(function () {
Expand Down Expand Up @@ -2360,6 +2362,9 @@ var UpdateProvider = (function (props) {
});

var WalletProvider = (function (props) {
var _useContext = React.useContext(ErrorContext),
setError = _useContext.setError;

var _useState = React.useState(),
_useState2 = _slicedToArray(_useState, 2),
wallet = _useState2[0],
Expand All @@ -2380,7 +2385,7 @@ var WalletProvider = (function (props) {
wallet.connect().then(function (accounts) {
setWalletState('connected');
setAccount(accounts[0]);
});
})["catch"](setError);
};

React.useEffect(function () {
Expand Down
886 changes: 519 additions & 367 deletions dist/es/index.bundle.js

Large diffs are not rendered by default.

47 changes: 26 additions & 21 deletions dist/es/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@

(function(l, r) { if (!l || l.getElementById('livereloadscript')) return; r = l.createElement('script'); r.async = 1; r.src = '//' + (self.location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1'; r.id = 'livereloadscript'; l.getElementsByTagName('head')[0].appendChild(r) })(self.document);
import React, { useState, useContext, useEffect } from 'react';
import ReactDOM from 'react-dom';
import { ReactShadowDOM } from 'depay-react-shadow-dom';
Expand Down Expand Up @@ -1571,15 +1569,18 @@ var round = (function (input) {
});

var ChangePaymentDialog = (function (props) {
var _useContext = useContext(RoutingContext),
allRoutes = _useContext.allRoutes,
setSelectedRoute = _useContext.setSelectedRoute;
var _useContext = useContext(ErrorContext),
setError = _useContext.setError;

var _useContext2 = useContext(RoutingContext),
allRoutes = _useContext2.allRoutes,
setSelectedRoute = _useContext2.setSelectedRoute;

var _useContext2 = useContext(ToTokenContext),
localValue = _useContext2.localValue;
var _useContext3 = useContext(ToTokenContext),
localValue = _useContext3.localValue;

var _useContext3 = useContext(NavigateStackContext),
navigate = _useContext3.navigate;
var _useContext4 = useContext(NavigateStackContext),
navigate = _useContext4.navigate;

var _useState = useState([]),
_useState2 = _slicedToArray(_useState, 2),
Expand Down Expand Up @@ -1610,7 +1611,7 @@ var ChangePaymentDialog = (function (props) {
route: route
};
}));
});
})["catch"](setError);
}, [allRoutes]);
useEffect(function () {
setCards(allPaymentRoutesWithData.map(function (payment, index) {
Expand Down Expand Up @@ -2249,14 +2250,17 @@ var RoutingProvider = (function (props) {
});

var ToTokenProvider = (function (props) {
var _useContext = useContext(WalletContext),
account = _useContext.account;
var _useContext = useContext(ErrorContext),
setError = _useContext.setError;

var _useContext2 = useContext(WalletContext),
account = _useContext2.account;

var _useContext2 = useContext(UpdateContext),
update = _useContext2.update;
var _useContext3 = useContext(UpdateContext),
update = _useContext3.update;

var _useContext3 = useContext(PaymentContext),
payment = _useContext3.payment;
var _useContext4 = useContext(PaymentContext),
payment = _useContext4.payment;

var _useState = useState(),
_useState2 = _slicedToArray(_useState, 2),
Expand Down Expand Up @@ -2306,10 +2310,8 @@ var ToTokenProvider = (function (props) {
Currency.fromUSD({
amount: USDValue,
apiKey: apiKey
}).then(function (localValue) {
setLocalValue(localValue);
});
});
}).then(setLocalValue)["catch"](setError);
})["catch"](setError);
};

useEffect(function () {
Expand Down Expand Up @@ -2353,6 +2355,9 @@ var UpdateProvider = (function (props) {
});

var WalletProvider = (function (props) {
var _useContext = useContext(ErrorContext),
setError = _useContext.setError;

var _useState = useState(),
_useState2 = _slicedToArray(_useState, 2),
wallet = _useState2[0],
Expand All @@ -2373,7 +2378,7 @@ var WalletProvider = (function (props) {
wallet.connect().then(function (accounts) {
setWalletState('connected');
setAccount(accounts[0]);
});
})["catch"](setError);
};

useEffect(function () {
Expand Down
Loading

0 comments on commit 79df000

Please sign in to comment.