@privy-io/react-auth 1.2.1 → 1.2.2-beta.1

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -5681,22 +5681,22 @@ var RetryOrBackButton = ({
5681
5681
  setNumRetries
5682
5682
  }) => {
5683
5683
  const { navigateBack } = usePrivyModal();
5684
- const [showGoBack, setShowGoBack] = (0, import_react10.useState)(false);
5684
+ const [showCallToAction, setCallToAction] = (0, import_react10.useState)(false);
5685
5685
  (0, import_react10.useEffect)(() => {
5686
5686
  const timer = setTimeout(() => {
5687
- setShowGoBack(true);
5687
+ setCallToAction(true);
5688
5688
  }, GO_BACK_DELAY_MS);
5689
5689
  return () => clearTimeout(timer);
5690
5690
  }, []);
5691
5691
  const isRetryableError = errorCode === ErrorCodes.ERROR_WALLET_CONNECTION || errorCode === ErrorCodes.ERROR_SIGNATURE_REJECTED;
5692
5692
  return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_jsx_runtime25.Fragment, {
5693
- children: (!errorCode || isRetryableError) && numRetries < MAX_RETRIES ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CtaButton, {
5693
+ children: (!errorCode || isRetryableError) && numRetries < MAX_RETRIES ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CallToActionButton, {
5694
5694
  onClick: () => setNumRetries(numRetries + 1),
5695
- visible: showGoBack,
5695
+ visible: showCallToAction,
5696
5696
  children: "Retry"
5697
- }) : /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CtaButton, {
5697
+ }) : /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CallToActionButton, {
5698
5698
  onClick: navigateBack,
5699
- visible: showGoBack,
5699
+ visible: showCallToAction,
5700
5700
  children: "Go back"
5701
5701
  })
5702
5702
  });
@@ -5739,7 +5739,7 @@ var StackedContainer = import_styled_components13.default.div`
5739
5739
  top: -19px;
5740
5740
  }
5741
5741
  `;
5742
- var CtaButton = import_styled_components13.default.button`
5742
+ var CallToActionButton = import_styled_components13.default.button`
5743
5743
  padding: 12px 16px;
5744
5744
  font-weight: 500;
5745
5745
  text-align: center;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@privy-io/react-auth",
3
- "version": "1.2.1",
3
+ "version": "1.2.2-beta.1",
4
4
  "description": "React client for the Privy Auth API",
5
5
  "keywords": [
6
6
  "authentication",