From 7bacf977d1a99ffe6af66f6496e07653c78b0d7e Mon Sep 17 00:00:00 2001 From: Corban Riley Date: Wed, 24 Apr 2024 15:06:25 -0400 Subject: [PATCH] Renaming tsx files to ts --- examples/react-waas/index.html | 2 +- examples/react-waas/src/{main.tsx => index.tsx} | 0 packages/checkout/src/api/{data.tsx => data.ts} | 0 packages/checkout/src/api/{index.tsx => index.ts} | 0 .../src/hooks/{useCheckoutModal.tsx => useCheckoutModal.ts} | 0 .../checkout/src/hooks/{useModalTheme.tsx => useModalTheme.ts} | 0 .../checkout/src/hooks/{useNavigation.tsx => useNavigation.ts} | 0 packages/checkout/src/shared/components/{index.tsx => index.ts} | 0 .../src/{defaultConnectors.tsx => defaultConnectors.ts} | 0 packages/kit/src/components/{index.tsx => index.ts} | 0 packages/kit/src/contexts/{Analytics.tsx => Analytics.ts} | 0 packages/kit/src/contexts/{ConnectModal.tsx => ConnectModal.ts} | 0 packages/kit/src/contexts/{Theme.tsx => Theme.ts} | 0 .../kit/src/contexts/{WalletSettings.tsx => WalletSettings.ts} | 0 .../hooks/{useOpenConnectModal.tsx => useOpenConnectModal.ts} | 0 packages/kit/src/hooks/{useTheme.tsx => useTheme.ts} | 0 .../src/hooks/{useWaasFeeOptions.tsx => useWaasFeeOptions.ts} | 0 .../src/hooks/{useWalletSettings.tsx => useWalletSettings.ts} | 1 - packages/kit/src/utils/{ethAuth.tsx => ethAuth.ts} | 1 - .../kit/src/utils/{genericContext.tsx => genericContext.ts} | 0 packages/wallet/src/api/{data.tsx => data.ts} | 0 packages/wallet/src/api/{index.tsx => index.ts} | 0 .../wallet/src/hooks/{useNavigation.tsx => useNavigation.ts} | 0 .../src/hooks/{useOpenWalletModal.tsx => useOpenWalletModal.ts} | 0 .../src/hooks/{useScrollbarWidth.tsx => useScrollbarWidth.ts} | 0 packages/wallet/src/hooks/{useSettings.tsx => useSettings.ts} | 0 packages/wallet/src/{index.tsx => index.ts} | 0 packages/wallet/src/shared/{index.tsx => index.ts} | 0 .../wallet/src/utils/{genericContext.tsx => genericContext.ts} | 0 packages/wallet/src/views/Search/{index.tsx => index.ts} | 0 packages/wallet/src/views/Settings/{index.tsx => index.ts} | 0 31 files changed, 1 insertion(+), 3 deletions(-) rename examples/react-waas/src/{main.tsx => index.tsx} (100%) rename packages/checkout/src/api/{data.tsx => data.ts} (100%) rename packages/checkout/src/api/{index.tsx => index.ts} (100%) rename packages/checkout/src/hooks/{useCheckoutModal.tsx => useCheckoutModal.ts} (100%) rename packages/checkout/src/hooks/{useModalTheme.tsx => useModalTheme.ts} (100%) rename packages/checkout/src/hooks/{useNavigation.tsx => useNavigation.ts} (100%) rename packages/checkout/src/shared/components/{index.tsx => index.ts} (100%) rename packages/connectors/src/{defaultConnectors.tsx => defaultConnectors.ts} (100%) rename packages/kit/src/components/{index.tsx => index.ts} (100%) rename packages/kit/src/contexts/{Analytics.tsx => Analytics.ts} (100%) rename packages/kit/src/contexts/{ConnectModal.tsx => ConnectModal.ts} (100%) rename packages/kit/src/contexts/{Theme.tsx => Theme.ts} (100%) rename packages/kit/src/contexts/{WalletSettings.tsx => WalletSettings.ts} (100%) rename packages/kit/src/hooks/{useOpenConnectModal.tsx => useOpenConnectModal.ts} (100%) rename packages/kit/src/hooks/{useTheme.tsx => useTheme.ts} (100%) rename packages/kit/src/hooks/{useWaasFeeOptions.tsx => useWaasFeeOptions.ts} (100%) rename packages/kit/src/hooks/{useWalletSettings.tsx => useWalletSettings.ts} (90%) rename packages/kit/src/utils/{ethAuth.tsx => ethAuth.ts} (98%) rename packages/kit/src/utils/{genericContext.tsx => genericContext.ts} (100%) rename packages/wallet/src/api/{data.tsx => data.ts} (100%) rename packages/wallet/src/api/{index.tsx => index.ts} (100%) rename packages/wallet/src/hooks/{useNavigation.tsx => useNavigation.ts} (100%) rename packages/wallet/src/hooks/{useOpenWalletModal.tsx => useOpenWalletModal.ts} (100%) rename packages/wallet/src/hooks/{useScrollbarWidth.tsx => useScrollbarWidth.ts} (100%) rename packages/wallet/src/hooks/{useSettings.tsx => useSettings.ts} (100%) rename packages/wallet/src/{index.tsx => index.ts} (100%) rename packages/wallet/src/shared/{index.tsx => index.ts} (100%) rename packages/wallet/src/utils/{genericContext.tsx => genericContext.ts} (100%) rename packages/wallet/src/views/Search/{index.tsx => index.ts} (100%) rename packages/wallet/src/views/Settings/{index.tsx => index.ts} (100%) diff --git a/examples/react-waas/index.html b/examples/react-waas/index.html index e4b78eae..f828b817 100644 --- a/examples/react-waas/index.html +++ b/examples/react-waas/index.html @@ -8,6 +8,6 @@
- + diff --git a/examples/react-waas/src/main.tsx b/examples/react-waas/src/index.tsx similarity index 100% rename from examples/react-waas/src/main.tsx rename to examples/react-waas/src/index.tsx diff --git a/packages/checkout/src/api/data.tsx b/packages/checkout/src/api/data.ts similarity index 100% rename from packages/checkout/src/api/data.tsx rename to packages/checkout/src/api/data.ts diff --git a/packages/checkout/src/api/index.tsx b/packages/checkout/src/api/index.ts similarity index 100% rename from packages/checkout/src/api/index.tsx rename to packages/checkout/src/api/index.ts diff --git a/packages/checkout/src/hooks/useCheckoutModal.tsx b/packages/checkout/src/hooks/useCheckoutModal.ts similarity index 100% rename from packages/checkout/src/hooks/useCheckoutModal.tsx rename to packages/checkout/src/hooks/useCheckoutModal.ts diff --git a/packages/checkout/src/hooks/useModalTheme.tsx b/packages/checkout/src/hooks/useModalTheme.ts similarity index 100% rename from packages/checkout/src/hooks/useModalTheme.tsx rename to packages/checkout/src/hooks/useModalTheme.ts diff --git a/packages/checkout/src/hooks/useNavigation.tsx b/packages/checkout/src/hooks/useNavigation.ts similarity index 100% rename from packages/checkout/src/hooks/useNavigation.tsx rename to packages/checkout/src/hooks/useNavigation.ts diff --git a/packages/checkout/src/shared/components/index.tsx b/packages/checkout/src/shared/components/index.ts similarity index 100% rename from packages/checkout/src/shared/components/index.tsx rename to packages/checkout/src/shared/components/index.ts diff --git a/packages/connectors/src/defaultConnectors.tsx b/packages/connectors/src/defaultConnectors.ts similarity index 100% rename from packages/connectors/src/defaultConnectors.tsx rename to packages/connectors/src/defaultConnectors.ts diff --git a/packages/kit/src/components/index.tsx b/packages/kit/src/components/index.ts similarity index 100% rename from packages/kit/src/components/index.tsx rename to packages/kit/src/components/index.ts diff --git a/packages/kit/src/contexts/Analytics.tsx b/packages/kit/src/contexts/Analytics.ts similarity index 100% rename from packages/kit/src/contexts/Analytics.tsx rename to packages/kit/src/contexts/Analytics.ts diff --git a/packages/kit/src/contexts/ConnectModal.tsx b/packages/kit/src/contexts/ConnectModal.ts similarity index 100% rename from packages/kit/src/contexts/ConnectModal.tsx rename to packages/kit/src/contexts/ConnectModal.ts diff --git a/packages/kit/src/contexts/Theme.tsx b/packages/kit/src/contexts/Theme.ts similarity index 100% rename from packages/kit/src/contexts/Theme.tsx rename to packages/kit/src/contexts/Theme.ts diff --git a/packages/kit/src/contexts/WalletSettings.tsx b/packages/kit/src/contexts/WalletSettings.ts similarity index 100% rename from packages/kit/src/contexts/WalletSettings.tsx rename to packages/kit/src/contexts/WalletSettings.ts diff --git a/packages/kit/src/hooks/useOpenConnectModal.tsx b/packages/kit/src/hooks/useOpenConnectModal.ts similarity index 100% rename from packages/kit/src/hooks/useOpenConnectModal.tsx rename to packages/kit/src/hooks/useOpenConnectModal.ts diff --git a/packages/kit/src/hooks/useTheme.tsx b/packages/kit/src/hooks/useTheme.ts similarity index 100% rename from packages/kit/src/hooks/useTheme.tsx rename to packages/kit/src/hooks/useTheme.ts diff --git a/packages/kit/src/hooks/useWaasFeeOptions.tsx b/packages/kit/src/hooks/useWaasFeeOptions.ts similarity index 100% rename from packages/kit/src/hooks/useWaasFeeOptions.tsx rename to packages/kit/src/hooks/useWaasFeeOptions.ts diff --git a/packages/kit/src/hooks/useWalletSettings.tsx b/packages/kit/src/hooks/useWalletSettings.ts similarity index 90% rename from packages/kit/src/hooks/useWalletSettings.tsx rename to packages/kit/src/hooks/useWalletSettings.ts index 8942460a..599242f6 100644 --- a/packages/kit/src/hooks/useWalletSettings.tsx +++ b/packages/kit/src/hooks/useWalletSettings.ts @@ -1,4 +1,3 @@ -import React from 'react' import { useWalletConfigContext } from '../contexts/WalletSettings' export const useWalletSettings = () => { diff --git a/packages/kit/src/utils/ethAuth.tsx b/packages/kit/src/utils/ethAuth.ts similarity index 98% rename from packages/kit/src/utils/ethAuth.tsx rename to packages/kit/src/utils/ethAuth.ts index 4ab4b77f..83944819 100644 --- a/packages/kit/src/utils/ethAuth.tsx +++ b/packages/kit/src/utils/ethAuth.ts @@ -1,4 +1,3 @@ -import { ethers } from 'ethers' import { ETHAuthProof } from '@0xsequence/auth' import { ETHAuth, Proof } from '@0xsequence/ethauth' import { sequence } from '0xsequence' diff --git a/packages/kit/src/utils/genericContext.tsx b/packages/kit/src/utils/genericContext.ts similarity index 100% rename from packages/kit/src/utils/genericContext.tsx rename to packages/kit/src/utils/genericContext.ts diff --git a/packages/wallet/src/api/data.tsx b/packages/wallet/src/api/data.ts similarity index 100% rename from packages/wallet/src/api/data.tsx rename to packages/wallet/src/api/data.ts diff --git a/packages/wallet/src/api/index.tsx b/packages/wallet/src/api/index.ts similarity index 100% rename from packages/wallet/src/api/index.tsx rename to packages/wallet/src/api/index.ts diff --git a/packages/wallet/src/hooks/useNavigation.tsx b/packages/wallet/src/hooks/useNavigation.ts similarity index 100% rename from packages/wallet/src/hooks/useNavigation.tsx rename to packages/wallet/src/hooks/useNavigation.ts diff --git a/packages/wallet/src/hooks/useOpenWalletModal.tsx b/packages/wallet/src/hooks/useOpenWalletModal.ts similarity index 100% rename from packages/wallet/src/hooks/useOpenWalletModal.tsx rename to packages/wallet/src/hooks/useOpenWalletModal.ts diff --git a/packages/wallet/src/hooks/useScrollbarWidth.tsx b/packages/wallet/src/hooks/useScrollbarWidth.ts similarity index 100% rename from packages/wallet/src/hooks/useScrollbarWidth.tsx rename to packages/wallet/src/hooks/useScrollbarWidth.ts diff --git a/packages/wallet/src/hooks/useSettings.tsx b/packages/wallet/src/hooks/useSettings.ts similarity index 100% rename from packages/wallet/src/hooks/useSettings.tsx rename to packages/wallet/src/hooks/useSettings.ts diff --git a/packages/wallet/src/index.tsx b/packages/wallet/src/index.ts similarity index 100% rename from packages/wallet/src/index.tsx rename to packages/wallet/src/index.ts diff --git a/packages/wallet/src/shared/index.tsx b/packages/wallet/src/shared/index.ts similarity index 100% rename from packages/wallet/src/shared/index.tsx rename to packages/wallet/src/shared/index.ts diff --git a/packages/wallet/src/utils/genericContext.tsx b/packages/wallet/src/utils/genericContext.ts similarity index 100% rename from packages/wallet/src/utils/genericContext.tsx rename to packages/wallet/src/utils/genericContext.ts diff --git a/packages/wallet/src/views/Search/index.tsx b/packages/wallet/src/views/Search/index.ts similarity index 100% rename from packages/wallet/src/views/Search/index.tsx rename to packages/wallet/src/views/Search/index.ts diff --git a/packages/wallet/src/views/Settings/index.tsx b/packages/wallet/src/views/Settings/index.ts similarity index 100% rename from packages/wallet/src/views/Settings/index.tsx rename to packages/wallet/src/views/Settings/index.ts