Skip to content

Commit

Permalink
changed isDev to constant in env.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewlee348 committed Nov 13, 2024
1 parent 2ef4f33 commit 820c695
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/checkout/src/api/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { ChainId, networks } from '@0xsequence/network'

import { CreditCardCheckout } from '../contexts'

import { DEVMODE } from '@0xsequence/kit'

export interface FetchSardineClientTokenReturn {
token: string
orderId: string
Expand Down
2 changes: 2 additions & 0 deletions packages/checkout/src/utils/sardine.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { ChainId, networks } from '@0xsequence/network'
import { ethers } from 'ethers'

import { DEVMODE } from '@0xsequence/kit'

export interface CheckSardineWhitelistStatusArgs {
isDev: boolean
chainId: number
Expand Down
2 changes: 2 additions & 0 deletions packages/checkout/src/views/PendingTransaction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import { fetchSardineOrderStatus } from '../api'
import { TransactionPendingNavigation } from '../contexts'
import { useNavigation, useCheckoutModal, useSardineClientToken, useTransactionStatusModal } from '../hooks'

import { DEVMODE } from '@0xsequence/kit'

const POLLING_TIME = 10 * 1000

export const PendingTransaction = () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ import { createConnector } from 'wagmi'

import { LocalStorageKey } from '../../constants/localStorage'

import { DEVMODE } from '../../env'

export interface SequenceWaasConnectConfig {
googleClientId?: string
appleClientId?: string
Expand Down
2 changes: 2 additions & 0 deletions packages/kit/src/hooks/useAPIClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { useKitConfig } from '../contexts/KitConfig'

import { useProjectAccessKey } from './useProjectAccessKey'

import { DEVMODE } from '../env'

export const useAPIClient = () => {
const projectAccessKey = useProjectAccessKey()
const { isDev = false } = useKitConfig()
Expand Down
2 changes: 2 additions & 0 deletions packages/kit/src/hooks/useIndexerClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import { useKitConfig } from '../contexts/KitConfig'

import { useProjectAccessKey } from './useProjectAccessKey'

import { DEVMODE } from '../env'

export const useIndexerClient = (chainId: ChainId) => {
const projectAccessKey = useProjectAccessKey()

Expand Down
2 changes: 2 additions & 0 deletions packages/kit/src/hooks/useMetadataClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { useKitConfig } from '../contexts/KitConfig'

import { useProjectAccessKey } from './useProjectAccessKey'

import { DEVMODE } from '../env'

export const useMetadataClient = () => {
const projectAccessKey = useProjectAccessKey()

Expand Down
2 changes: 2 additions & 0 deletions packages/kit/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,5 @@ export {
// Components
export { NetworkBadge } from './components/NetworkBadge'
export { CollectibleTileImage } from './components/CollectibleTileImage'

export { DEVMODE } from './env'
2 changes: 1 addition & 1 deletion packages/kit/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
"lib": ["es2022", "dom", "dom.iterable"],
"jsx": "react-jsx"
},
"include": ["./src/**/*.ts", "./src/**/*.tsx"]
"include": ["./src/**/*.ts", "./src/**/*.tsx", "src/env.ts"]
}

0 comments on commit 820c695

Please sign in to comment.