Skip to content

Commit

Permalink
set 'use client' on all Providers and Contexts
Browse files Browse the repository at this point in the history
  • Loading branch information
corbanbrook committed May 23, 2024
1 parent 0c153c4 commit f8b8225
Show file tree
Hide file tree
Showing 13 changed files with 26 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/checkout/src/contexts/CheckoutModal.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client'

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

import { createGenericContext } from './genericContext'
Expand Down
2 changes: 2 additions & 0 deletions packages/checkout/src/contexts/Navigation.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client'

import { createGenericContext } from './genericContext'

export interface SelectCheckoutNavigation {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client'

import { Box, Modal, ThemeProvider } from '@0xsequence/design-system'
import { getModalPositionCss, useTheme } from '@0xsequence/kit'
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
Expand Down
2 changes: 2 additions & 0 deletions packages/kit/src/components/KitProvider/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client'

import { sequence } from '0xsequence'
import { Box, Button, Card, Collapsible, Modal, Text, ThemeProvider } from '@0xsequence/design-system'
import { GoogleOAuthProvider } from '@react-oauth/google'
Expand Down
2 changes: 2 additions & 0 deletions packages/kit/src/contexts/Analytics.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client'

import { sequence } from '0xsequence'
import React from 'react'

Expand Down
2 changes: 2 additions & 0 deletions packages/kit/src/contexts/ConnectModal.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client'

import React from 'react'

import { createGenericContext } from './genericContext'
Expand Down
2 changes: 2 additions & 0 deletions packages/kit/src/contexts/KitConfig.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client'

import { KitConfig } from '../types'

import { createGenericContext } from './genericContext'
Expand Down
2 changes: 2 additions & 0 deletions packages/kit/src/contexts/Theme.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client'

import React from 'react'

import { ModalPosition, Theme } from '../index'
Expand Down
2 changes: 2 additions & 0 deletions packages/kit/src/contexts/WalletSettings.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client'

import React from 'react'

import { DisplayedAsset } from '../types'
Expand Down
2 changes: 2 additions & 0 deletions packages/kit/src/hooks/useWaasFeeOptions.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client'

import { FeeOption } from '@0xsequence/waas'
import { ethers } from 'ethers'
import { useState, useEffect } from 'react'
Expand Down
2 changes: 2 additions & 0 deletions packages/wallet/src/contexts/Navigation.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client'

import { Transaction } from '@0xsequence/indexer'

import { createGenericContext } from './genericContext'
Expand Down
2 changes: 2 additions & 0 deletions packages/wallet/src/contexts/WalletModal.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client'

import React from 'react'

import { createGenericContext } from './genericContext'
Expand Down
2 changes: 2 additions & 0 deletions packages/wallet/src/shared/KitWalletProvider/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client'

import { Box, Modal, ThemeProvider, Scroll } from '@0xsequence/design-system'
import { getModalPositionCss, useTheme } from '@0xsequence/kit'
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
Expand Down

0 comments on commit f8b8225

Please sign in to comment.