Skip to content

Commit d77b6f6

Browse files
authored
Adds use client directives (#2921)
1 parent 2c4af9a commit d77b6f6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+59
-0
lines changed

.changeset/soft-wasps-change.md

Lines changed: 5 additions & 0 deletions

packages/thirdweb/src/react/core/providers/RootElementContext.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"use client";
12
import { createContext } from "react";
23

34
export const SetRootElementContext = createContext<

packages/thirdweb/src/react/core/providers/thirdweb-provider.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"use client";
12
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
23
import { useState } from "react";
34
import {

packages/thirdweb/src/react/core/providers/wallet-connection.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"use client";
12
import { createContext } from "react";
23
import type { Chain } from "../../../chains/types.js";
34
import type { ThirdwebClient } from "../../../client/client.js";

packages/thirdweb/src/react/web/providers/wallet-ui-states-provider.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"use client";
12
import { createContext, useContext, useState } from "react";
23
import { CustomThemeProvider } from "../ui/design-system/CustomThemeProvider.js";
34
import type { Theme } from "../ui/design-system/index.js";

packages/thirdweb/src/react/web/ui/ConnectWallet/ConnectButton.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"use client";
2+
13
import styled from "@emotion/styled";
24
import { useEffect, useMemo, useState } from "react";
35
import { useSiweAuth } from "../../../core/hooks/auth/useSiweAuth.js";

packages/thirdweb/src/react/web/ui/ConnectWallet/Details.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"use client";
12
import styled from "@emotion/styled";
23
import {
34
ChevronRightIcon,

packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/AllWalletsUI.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"use client";
12
import styled from "@emotion/styled";
23
import { MagnifyingGlassIcon } from "@radix-ui/react-icons";
34
import { CrossCircledIcon } from "@radix-ui/react-icons";

packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"use client";
12
import { Suspense, lazy, useEffect, useState } from "react";
23
import type {
34
InjectedSupportedWalletIds,

packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/ConnectEmbed.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"use client";
12
import { useEffect, useMemo } from "react";
23
import type { Chain } from "../../../../../chains/types.js";
34
import type { ThirdwebClient } from "../../../../../client/client.js";

0 commit comments

Comments
 (0)