@rango-dev/ui 0.1.10-next.89 → 0.1.10-next.91

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ui.esm.js CHANGED
@@ -4069,15 +4069,19 @@ function ConfirmSwap(props) {
4069
4069
  onClick: onRefresh
4070
4070
  })
4071
4071
  }, React__default.createElement(MainContainer$2, null, React__default.createElement("div", null, extraMessages || null, React__default.createElement(Alerts, null, errors == null ? void 0 : errors.map(function (error, index) {
4072
- return React__default.createElement(Alert, {
4072
+ return React__default.createElement(React__default.Fragment, null, React__default.createElement(Spacer, {
4073
+ direction: "vertical"
4074
+ }), React__default.createElement(Alert, {
4073
4075
  type: "error",
4074
4076
  key: index
4075
- }, error);
4077
+ }, error));
4076
4078
  }), warnings == null ? void 0 : warnings.map(function (warning, index) {
4077
- return React__default.createElement(Alert, {
4079
+ return React__default.createElement(React__default.Fragment, null, React__default.createElement(Spacer, {
4080
+ direction: "vertical"
4081
+ }), React__default.createElement(Alert, {
4078
4082
  type: "warning",
4079
4083
  key: index
4080
- }, warning);
4084
+ }, warning));
4081
4085
  }))), React__default.createElement(BestRouteContainer$1, null, bestRoute == null ? void 0 : (_bestRoute$result = bestRoute.result) == null ? void 0 : _bestRoute$result.swaps.map(function (swap, index) {
4082
4086
  var _bestRoute$result2;
4083
4087
  return React__default.createElement(Fragment, {
@@ -4097,7 +4101,7 @@ function ConfirmSwap(props) {
4097
4101
  }, swap.swapperType, " from ", swap.from.symbol, " to", ' ', swap.to.symbol, " via ", swap.swapperId, ' '), React__default.createElement(Fee, null, React__default.createElement(GasIcon, null), React__default.createElement(Typography, {
4098
4102
  ml: 4,
4099
4103
  variant: "caption"
4100
- }, parseFloat(swap.fee[0].amount).toFixed(6), " estimated gas fee")))), React__default.createElement(Line$2, null), index + 1 === ((_bestRoute$result2 = bestRoute.result) == null ? void 0 : _bestRoute$result2.swaps.length) && React__default.createElement(ArrowDown, null), React__default.createElement(StepDetail, {
4104
+ }, "$", swap.feeInUsd, " estimated gas fee")))), React__default.createElement(Line$2, null), index + 1 === ((_bestRoute$result2 = bestRoute.result) == null ? void 0 : _bestRoute$result2.swaps.length) && React__default.createElement(ArrowDown, null), React__default.createElement(StepDetail, {
4101
4105
  logo: swap.to.logo,
4102
4106
  symbol: swap.to.symbol,
4103
4107
  chainLogo: swap.to.blockchainLogo,
@@ -4131,8 +4135,8 @@ function ConfirmWallets(props) {
4131
4135
  handleConnectChain = props.handleConnectChain,
4132
4136
  fromAmount = props.fromAmount,
4133
4137
  toAmount = props.toAmount;
4134
- var firstStep = (_swap$result = swap.result) == null ? void 0 : _swap$result.swaps[0];
4135
- var lastStep = (_swap$result2 = swap.result) == null ? void 0 : _swap$result2.swaps[((_swap$result3 = swap.result) == null ? void 0 : _swap$result3.swaps.length) - 1];
4138
+ var firstStep = swap == null ? void 0 : (_swap$result = swap.result) == null ? void 0 : _swap$result.swaps[0];
4139
+ var lastStep = swap == null ? void 0 : (_swap$result2 = swap.result) == null ? void 0 : _swap$result2.swaps[((_swap$result3 = swap.result) == null ? void 0 : _swap$result3.swaps.length) - 1];
4136
4140
  return React__default.createElement(SecondaryPage, {
4137
4141
  textField: false,
4138
4142
  title: "Confirm Swap",
@@ -4375,7 +4379,7 @@ function SwapHistory(props) {
4375
4379
  }, step.swapperType, " from ", step.fromSymbol, " to ", step.toSymbol, "via ", step.swapperId), React__default.createElement(Fee, null, React__default.createElement(GasIcon, null), React__default.createElement(Typography, {
4376
4380
  ml: 4,
4377
4381
  variant: "caption"
4378
- }, step.feeInUsd, " estimated gas fee")))), React__default.createElement("div", {
4382
+ }, "$", step.feeInUsd, " estimated gas fee")))), React__default.createElement("div", {
4379
4383
  style: {
4380
4384
  display: 'flex'
4381
4385
  }