From d9e797c96156a13e2214658a584302b10e1c97f9 Mon Sep 17 00:00:00 2001 From: Dominik Stumpf <122315398+dominik-stumpf@users.noreply.github.com> Date: Wed, 3 Jul 2024 16:52:06 +0200 Subject: [PATCH] Try fix build "out of memory" error (#1347) * build: allocate more memory for nodejs on build * build: increase memory limit * chore: remove posthog provider to test build error * chore: remove posthog provider to test build error * chore: remove reward import * build: remove memory limit override * chore: fix circular import * fix: update import outside v2 * fix: add missing react suspense * Revert "chore: remove reward import" This reverts commit b2cf1d8efa9f73f2d86463640197c62aa5c77195. * chore: remove accidental svg * fix(layout): add back `PostHogPageViews` --------- Co-authored-by: BrickheadJohnny --- src/app/layout.tsx | 3 ++- .../JoinModal/components/WalletAuthButton.tsx | 2 +- .../[guild]/NoPermissionToPageFallback.tsx | 2 +- .../PaymentCurrencyPicker.tsx | 2 +- .../buttons/ConnectWalletButton.tsx | 2 +- .../HiddenRequirementAccessIndicator.tsx | 2 +- .../components/RequirementAccessIndicator.tsx | 2 +- .../AccessIndicator/AccessIndicator.tsx | 2 +- .../LeaderboardAirdropFallbackCard.tsx | 2 +- .../_app/LegacyWeb3ConnectionManager.tsx | 2 +- .../GoogleGuildSetup/GoogleGuildSetup.tsx | 2 +- .../Layout/components/Account/Account.tsx | 2 +- .../components/LinkAddressButton.tsx | 2 +- .../UsersGuildCredentials/GuildPin.tsx | 2 +- .../UsersGuildCredentials/UsersGuildPins.tsx | 2 +- .../create-guild/CreateGuildButton.tsx | 2 +- .../components/PlatformSelectButton.tsx | 2 +- src/components/explorer/YourGuilds.tsx | 2 +- src/v2/components/Account/Account.tsx | 2 +- .../components/AccountModal/AccountModal.tsx | 2 +- src/v2/components/Providers/Providers.tsx | 20 ++++--------------- src/v2/components/Providers/atoms.ts | 10 ++++++++++ src/v2/components/Providers/types.ts | 4 ++++ .../WalletLinkHelperModal.tsx | 2 +- .../WalletSelectorModal.tsx | 2 +- .../components/ConnectorButton.tsx | 2 +- .../hooks/useLinkAddress.ts | 6 ++---- .../Web3ConnectionManager.tsx | 2 +- .../hooks/useTriggerWalletSelectorModal.ts | 2 +- src/v2/hooks/useUserPublic.ts | 2 +- 30 files changed, 47 insertions(+), 46 deletions(-) create mode 100644 src/v2/components/Providers/atoms.ts create mode 100644 src/v2/components/Providers/types.ts diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 6a3ae290e4..ae05e5e8c9 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -23,7 +23,8 @@ export default function RootLayout({ children }: RootLayoutProps) { {children} - + + diff --git a/src/components/[guild]/JoinModal/components/WalletAuthButton.tsx b/src/components/[guild]/JoinModal/components/WalletAuthButton.tsx index acf7443d23..7df17d7f56 100644 --- a/src/components/[guild]/JoinModal/components/WalletAuthButton.tsx +++ b/src/components/[guild]/JoinModal/components/WalletAuthButton.tsx @@ -1,4 +1,4 @@ -import { walletSelectorModalAtom } from "@/components/Providers/Providers" +import { walletSelectorModalAtom } from "@/components/Providers/atoms" import { useWeb3ConnectionManager } from "@/components/Web3ConnectionManager/hooks/useWeb3ConnectionManager" import { SignIn, Wallet } from "@phosphor-icons/react" import { useSetAtom } from "jotai" diff --git a/src/components/[guild]/NoPermissionToPageFallback.tsx b/src/components/[guild]/NoPermissionToPageFallback.tsx index 51d6793e0f..2f2ff541a4 100644 --- a/src/components/[guild]/NoPermissionToPageFallback.tsx +++ b/src/components/[guild]/NoPermissionToPageFallback.tsx @@ -1,7 +1,7 @@ import { accountModalAtom, walletSelectorModalAtom, -} from "@/components/Providers/Providers" +} from "@/components/Providers/atoms" import { Alert, AlertDescription, diff --git a/src/components/[guild]/Requirements/components/GuildCheckout/components/PaymentCurrencyPicker/PaymentCurrencyPicker.tsx b/src/components/[guild]/Requirements/components/GuildCheckout/components/PaymentCurrencyPicker/PaymentCurrencyPicker.tsx index c77e3595d4..eace72a366 100644 --- a/src/components/[guild]/Requirements/components/GuildCheckout/components/PaymentCurrencyPicker/PaymentCurrencyPicker.tsx +++ b/src/components/[guild]/Requirements/components/GuildCheckout/components/PaymentCurrencyPicker/PaymentCurrencyPicker.tsx @@ -1,4 +1,4 @@ -import { accountModalAtom } from "@/components/Providers/Providers" +import { accountModalAtom } from "@/components/Providers/atoms" import { Circle, HStack, diff --git a/src/components/[guild]/Requirements/components/GuildCheckout/components/buttons/ConnectWalletButton.tsx b/src/components/[guild]/Requirements/components/GuildCheckout/components/buttons/ConnectWalletButton.tsx index 11c4874145..c720256258 100644 --- a/src/components/[guild]/Requirements/components/GuildCheckout/components/buttons/ConnectWalletButton.tsx +++ b/src/components/[guild]/Requirements/components/GuildCheckout/components/buttons/ConnectWalletButton.tsx @@ -1,4 +1,4 @@ -import { walletSelectorModalAtom } from "@/components/Providers/Providers" +import { walletSelectorModalAtom } from "@/components/Providers/atoms" import { useWeb3ConnectionManager } from "@/components/Web3ConnectionManager/hooks/useWeb3ConnectionManager" import { Collapse, Tooltip } from "@chakra-ui/react" import Button from "components/common/Button" diff --git a/src/components/[guild]/Requirements/components/HiddenRequirementAccessIndicator.tsx b/src/components/[guild]/Requirements/components/HiddenRequirementAccessIndicator.tsx index 430c826dbc..6b33697d31 100644 --- a/src/components/[guild]/Requirements/components/HiddenRequirementAccessIndicator.tsx +++ b/src/components/[guild]/Requirements/components/HiddenRequirementAccessIndicator.tsx @@ -1,4 +1,4 @@ -import { accountModalAtom } from "@/components/Providers/Providers" +import { accountModalAtom } from "@/components/Providers/atoms" import { ButtonGroup, Collapse, diff --git a/src/components/[guild]/Requirements/components/RequirementAccessIndicator.tsx b/src/components/[guild]/Requirements/components/RequirementAccessIndicator.tsx index 987df2a184..74c5b6b9ac 100644 --- a/src/components/[guild]/Requirements/components/RequirementAccessIndicator.tsx +++ b/src/components/[guild]/Requirements/components/RequirementAccessIndicator.tsx @@ -1,4 +1,4 @@ -import { accountModalAtom } from "@/components/Providers/Providers" +import { accountModalAtom } from "@/components/Providers/atoms" import { ButtonGroup, Icon, diff --git a/src/components/[guild]/RoleCard/components/AccessIndicator/AccessIndicator.tsx b/src/components/[guild]/RoleCard/components/AccessIndicator/AccessIndicator.tsx index 79ef9520ab..62b01e55c0 100644 --- a/src/components/[guild]/RoleCard/components/AccessIndicator/AccessIndicator.tsx +++ b/src/components/[guild]/RoleCard/components/AccessIndicator/AccessIndicator.tsx @@ -1,4 +1,4 @@ -import { accountModalAtom } from "@/components/Providers/Providers" +import { accountModalAtom } from "@/components/Providers/atoms" import { Box, Divider, diff --git a/src/components/[guild]/leaderboard/LeaderboardAirdropFallbackCard.tsx b/src/components/[guild]/leaderboard/LeaderboardAirdropFallbackCard.tsx index 123ebc0d02..ee566c8c73 100644 --- a/src/components/[guild]/leaderboard/LeaderboardAirdropFallbackCard.tsx +++ b/src/components/[guild]/leaderboard/LeaderboardAirdropFallbackCard.tsx @@ -1,4 +1,4 @@ -import { walletSelectorModalAtom } from "@/components/Providers/Providers" +import { walletSelectorModalAtom } from "@/components/Providers/atoms" import { Center, Collapse, Img, useColorModeValue } from "@chakra-ui/react" import { SignIn, X } from "@phosphor-icons/react" import ActionCard from "components/common/ActionCard" diff --git a/src/components/_app/LegacyWeb3ConnectionManager.tsx b/src/components/_app/LegacyWeb3ConnectionManager.tsx index 0b8780678f..09b927be02 100644 --- a/src/components/_app/LegacyWeb3ConnectionManager.tsx +++ b/src/components/_app/LegacyWeb3ConnectionManager.tsx @@ -1,4 +1,4 @@ -import { walletSelectorModalAtom } from "@/components/Providers/Providers" +import { walletSelectorModalAtom } from "@/components/Providers/atoms" import { useWeb3ConnectionManager } from "@/components/Web3ConnectionManager/hooks/useWeb3ConnectionManager" import { Web3ConnectionManagerBase } from "@/components/Web3ConnectionManager/Web3ConnectionManager" import { useSetAtom } from "jotai" diff --git a/src/components/common/GoogleGuildSetup/GoogleGuildSetup.tsx b/src/components/common/GoogleGuildSetup/GoogleGuildSetup.tsx index 478801f991..6beb0e1cf9 100644 --- a/src/components/common/GoogleGuildSetup/GoogleGuildSetup.tsx +++ b/src/components/common/GoogleGuildSetup/GoogleGuildSetup.tsx @@ -1,4 +1,4 @@ -import { accountModalAtom } from "@/components/Providers/Providers" +import { accountModalAtom } from "@/components/Providers/atoms" import { ButtonGroup, GridItem, diff --git a/src/components/common/Layout/components/Account/Account.tsx b/src/components/common/Layout/components/Account/Account.tsx index 9a298aa125..3e0df9c487 100644 --- a/src/components/common/Layout/components/Account/Account.tsx +++ b/src/components/common/Layout/components/Account/Account.tsx @@ -1,4 +1,4 @@ -import { walletSelectorModalAtom } from "@/components/Providers/Providers" +import { walletSelectorModalAtom } from "@/components/Providers/atoms" import { useWeb3ConnectionManager } from "@/components/Web3ConnectionManager/hooks/useWeb3ConnectionManager" import { ButtonGroup, Divider } from "@chakra-ui/react" import { SignIn } from "@phosphor-icons/react" diff --git a/src/components/common/Layout/components/Account/components/AccountModal/components/LinkAddressButton.tsx b/src/components/common/Layout/components/Account/components/AccountModal/components/LinkAddressButton.tsx index 0ca39863b5..0b9a1f506a 100644 --- a/src/components/common/Layout/components/Account/components/AccountModal/components/LinkAddressButton.tsx +++ b/src/components/common/Layout/components/Account/components/AccountModal/components/LinkAddressButton.tsx @@ -1,7 +1,7 @@ import { addressLinkParamsAtom, walletSelectorModalAtom, -} from "@/components/Providers/Providers" +} from "@/components/Providers/atoms" import { useWeb3ConnectionManager } from "@/components/Web3ConnectionManager/hooks/useWeb3ConnectionManager" import { Plus } from "@phosphor-icons/react" import useUser from "components/[guild]/hooks/useUser" diff --git a/src/components/common/Layout/components/Account/components/AccountModal/components/UsersGuildCredentials/GuildPin.tsx b/src/components/common/Layout/components/Account/components/AccountModal/components/UsersGuildCredentials/GuildPin.tsx index e1b10e330e..7c1ebfc8a8 100644 --- a/src/components/common/Layout/components/Account/components/AccountModal/components/UsersGuildCredentials/GuildPin.tsx +++ b/src/components/common/Layout/components/Account/components/AccountModal/components/UsersGuildCredentials/GuildPin.tsx @@ -1,4 +1,4 @@ -import { accountModalAtom } from "@/components/Providers/Providers" +import { accountModalAtom } from "@/components/Providers/atoms" import { Link } from "@chakra-ui/next-js" import { Card, Circle, Img, Tag, useColorModeValue } from "@chakra-ui/react" import { useSetAtom } from "jotai" diff --git a/src/components/common/Layout/components/Account/components/AccountModal/components/UsersGuildCredentials/UsersGuildPins.tsx b/src/components/common/Layout/components/Account/components/AccountModal/components/UsersGuildCredentials/UsersGuildPins.tsx index 85e3731450..20a82121d8 100644 --- a/src/components/common/Layout/components/Account/components/AccountModal/components/UsersGuildCredentials/UsersGuildPins.tsx +++ b/src/components/common/Layout/components/Account/components/AccountModal/components/UsersGuildCredentials/UsersGuildPins.tsx @@ -1,4 +1,4 @@ -import { accountModalAtom } from "@/components/Providers/Providers" +import { accountModalAtom } from "@/components/Providers/atoms" import { Alert, AlertIcon, Box, Flex, Text } from "@chakra-ui/react" import useUsersGuildPins from "hooks/useUsersGuildPins" import { useAtomValue } from "jotai" diff --git a/src/components/create-guild/CreateGuildButton.tsx b/src/components/create-guild/CreateGuildButton.tsx index 146875c8a3..3fd5675e2d 100644 --- a/src/components/create-guild/CreateGuildButton.tsx +++ b/src/components/create-guild/CreateGuildButton.tsx @@ -1,4 +1,4 @@ -import { walletSelectorModalAtom } from "@/components/Providers/Providers" +import { walletSelectorModalAtom } from "@/components/Providers/atoms" import { useWeb3ConnectionManager } from "@/components/Web3ConnectionManager/hooks/useWeb3ConnectionManager" import { Collapse, Stack } from "@chakra-ui/react" import Button from "components/common/Button" diff --git a/src/components/create-guild/PlatformsGrid/components/PlatformSelectButton.tsx b/src/components/create-guild/PlatformsGrid/components/PlatformSelectButton.tsx index b5417ac9e9..7f159e52c2 100644 --- a/src/components/create-guild/PlatformsGrid/components/PlatformSelectButton.tsx +++ b/src/components/create-guild/PlatformsGrid/components/PlatformSelectButton.tsx @@ -1,4 +1,4 @@ -import { walletSelectorModalAtom } from "@/components/Providers/Providers" +import { walletSelectorModalAtom } from "@/components/Providers/atoms" import { useWeb3ConnectionManager } from "@/components/Web3ConnectionManager/hooks/useWeb3ConnectionManager" import { Circle, diff --git a/src/components/explorer/YourGuilds.tsx b/src/components/explorer/YourGuilds.tsx index 153c00cb8f..5b51ea35d8 100644 --- a/src/components/explorer/YourGuilds.tsx +++ b/src/components/explorer/YourGuilds.tsx @@ -1,4 +1,4 @@ -import { walletSelectorModalAtom } from "@/components/Providers/Providers" +import { walletSelectorModalAtom } from "@/components/Providers/atoms" import { useWeb3ConnectionManager } from "@/components/Web3ConnectionManager/hooks/useWeb3ConnectionManager" import { Box, HStack, Img, Stack, Text } from "@chakra-ui/react" import { Plus, SignIn } from "@phosphor-icons/react" diff --git a/src/v2/components/Account/Account.tsx b/src/v2/components/Account/Account.tsx index d5beca80de..14aef5da46 100644 --- a/src/v2/components/Account/Account.tsx +++ b/src/v2/components/Account/Account.tsx @@ -7,7 +7,7 @@ import useUser from "components/[guild]/hooks/useUser" import { useSetAtom } from "jotai" import shortenHex from "utils/shortenHex" import { GuildAvatar } from "../GuildAvatar" -import { accountModalAtom, walletSelectorModalAtom } from "../Providers/Providers" +import { accountModalAtom, walletSelectorModalAtom } from "../Providers/atoms" import { Button } from "../ui/Button" import { Card } from "../ui/Card" import { useWeb3ConnectionManager } from "../Web3ConnectionManager/hooks/useWeb3ConnectionManager" diff --git a/src/v2/components/Account/components/AccountModal/AccountModal.tsx b/src/v2/components/Account/components/AccountModal/AccountModal.tsx index d7d2be5fde..59f8461519 100644 --- a/src/v2/components/Account/components/AccountModal/AccountModal.tsx +++ b/src/v2/components/Account/components/AccountModal/AccountModal.tsx @@ -1,6 +1,6 @@ import { CopyableAddress } from "@/components/CopyableAddress" import { GuildAvatar } from "@/components/GuildAvatar" -import { accountModalAtom } from "@/components/Providers/Providers" +import { accountModalAtom } from "@/components/Providers/atoms" import { Button } from "@/components/ui/Button" import { Dialog, diff --git a/src/v2/components/Providers/Providers.tsx b/src/v2/components/Providers/Providers.tsx index 87cd8550ef..427e7a3eb4 100644 --- a/src/v2/components/Providers/Providers.tsx +++ b/src/v2/components/Providers/Providers.tsx @@ -3,7 +3,6 @@ import { FuelProvider } from "@fuels/react" import { QueryClient, QueryClientProvider } from "@tanstack/react-query" import { fuelConfig } from "fuelConfig" -import { atom } from "jotai" import { ThemeProvider } from "next-themes" import { SWRConfig } from "swr" import { fetcherForSWR } from "utils/fetcher" @@ -13,23 +12,10 @@ import { AccountModal } from "../Account/components/AccountModal" import { Toaster } from "../ui/Toaster" import { Web3ConnectionManager } from "../Web3ConnectionManager" import { PostHogProvider } from "./PostHogProvider" +import { Suspense } from "react" const queryClient = new QueryClient() -// Atoms for global modals - TODO: move the types to another file -export const walletSelectorModalAtom = atom(false) -export const accountModalAtom = atom(false) - -export type AddressLinkParams = { - userId?: number - address?: `0x${string}` -} -export const addressLinkParamsAtom = atom({ - userId: undefined, - address: undefined, -}) -export const walletLinkHelperModalAtom = atom(false) - // TODO: add AppErrorBoundary export function Providers({ children }: { children: React.ReactNode }) { return ( @@ -48,7 +34,9 @@ export function Providers({ children }: { children: React.ReactNode }) { {/* TODO: */} {children} - + + + {/* */} diff --git a/src/v2/components/Providers/atoms.ts b/src/v2/components/Providers/atoms.ts new file mode 100644 index 0000000000..e0408c6971 --- /dev/null +++ b/src/v2/components/Providers/atoms.ts @@ -0,0 +1,10 @@ +import { atom } from "jotai" +import { AddressLinkParams } from "./types" + +export const accountModalAtom = atom(false) +export const walletSelectorModalAtom = atom(false) +export const addressLinkParamsAtom = atom({ + userId: undefined, + address: undefined, +}) +export const walletLinkHelperModalAtom = atom(false) diff --git a/src/v2/components/Providers/types.ts b/src/v2/components/Providers/types.ts new file mode 100644 index 0000000000..5ade9f1a27 --- /dev/null +++ b/src/v2/components/Providers/types.ts @@ -0,0 +1,4 @@ +export type AddressLinkParams = { + userId?: number + address?: `0x${string}` +} diff --git a/src/v2/components/Web3ConnectionManager/WalletLinkHelperModal.tsx b/src/v2/components/Web3ConnectionManager/WalletLinkHelperModal.tsx index b1ba0af223..e0f0a8e50b 100644 --- a/src/v2/components/Web3ConnectionManager/WalletLinkHelperModal.tsx +++ b/src/v2/components/Web3ConnectionManager/WalletLinkHelperModal.tsx @@ -12,7 +12,7 @@ import LogicDivider from "components/[guild]/LogicDivider" import Button from "components/common/Button" import { Modal } from "components/common/Modal" import { useAtom } from "jotai" -import { walletLinkHelperModalAtom } from "../Providers/Providers" +import { walletLinkHelperModalAtom } from "../Providers/atoms" const WalletLinkHelperModal = () => { const [isWalletLinkHelperModalOpen, setIsWalletLinkModalOpen] = useAtom( diff --git a/src/v2/components/Web3ConnectionManager/WalletSelectorModal/WalletSelectorModal.tsx b/src/v2/components/Web3ConnectionManager/WalletSelectorModal/WalletSelectorModal.tsx index 414b55eb64..b160d04f4e 100644 --- a/src/v2/components/Web3ConnectionManager/WalletSelectorModal/WalletSelectorModal.tsx +++ b/src/v2/components/Web3ConnectionManager/WalletSelectorModal/WalletSelectorModal.tsx @@ -16,7 +16,7 @@ import { usePostHogContext } from "@/components/Providers/PostHogProvider" import { addressLinkParamsAtom, walletLinkHelperModalAtom, -} from "@/components/Providers/Providers" +} from "@/components/Providers/atoms" import { useWeb3ConnectionManager } from "@/components/Web3ConnectionManager/hooks/useWeb3ConnectionManager" import { ArrowSquareOut } from "@phosphor-icons/react/dist/ssr" import { useAtom, useSetAtom } from "jotai" diff --git a/src/v2/components/Web3ConnectionManager/WalletSelectorModal/components/ConnectorButton.tsx b/src/v2/components/Web3ConnectionManager/WalletSelectorModal/components/ConnectorButton.tsx index 0920c8ca51..a1edeaa170 100644 --- a/src/v2/components/Web3ConnectionManager/WalletSelectorModal/components/ConnectorButton.tsx +++ b/src/v2/components/Web3ConnectionManager/WalletSelectorModal/components/ConnectorButton.tsx @@ -1,7 +1,7 @@ import { addressLinkParamsAtom, walletLinkHelperModalAtom, -} from "@/components/Providers/Providers" +} from "@/components/Providers/atoms" import { Button, ButtonProps } from "@/components/ui/Button" import useConnectorNameAndIcon from "@/components/Web3ConnectionManager/hooks/useConnectorNameAndIcon" import { useUserPublic } from "@/hooks/useUserPublic" diff --git a/src/v2/components/Web3ConnectionManager/WalletSelectorModal/hooks/useLinkAddress.ts b/src/v2/components/Web3ConnectionManager/WalletSelectorModal/hooks/useLinkAddress.ts index e9f75870c6..9c15770d67 100644 --- a/src/v2/components/Web3ConnectionManager/WalletSelectorModal/hooks/useLinkAddress.ts +++ b/src/v2/components/Web3ConnectionManager/WalletSelectorModal/hooks/useLinkAddress.ts @@ -1,8 +1,6 @@ +import { addressLinkParamsAtom } from "@/components/Providers/atoms" import { usePostHogContext } from "@/components/Providers/PostHogProvider" -import { - AddressLinkParams, - addressLinkParamsAtom, -} from "@/components/Providers/Providers" +import { AddressLinkParams } from "@/components/Providers/types" import { useWeb3ConnectionManager } from "@/components/Web3ConnectionManager/hooks/useWeb3ConnectionManager" import { useUserPublic } from "@/hooks/useUserPublic" import useSubmit from "hooks/useSubmit" diff --git a/src/v2/components/Web3ConnectionManager/Web3ConnectionManager.tsx b/src/v2/components/Web3ConnectionManager/Web3ConnectionManager.tsx index 7d639f416a..c3473924da 100644 --- a/src/v2/components/Web3ConnectionManager/Web3ConnectionManager.tsx +++ b/src/v2/components/Web3ConnectionManager/Web3ConnectionManager.tsx @@ -1,6 +1,6 @@ import useAutoReconnect from "@/hooks/useAutoReconnect" import { useAtom } from "jotai" -import { walletSelectorModalAtom } from "../Providers/Providers" +import { walletSelectorModalAtom } from "../Providers/atoms" import { useTriggerWalletSelectorModal } from "./hooks/useTriggerWalletSelectorModal" import WalletSelectorModal from "./WalletSelectorModal" diff --git a/src/v2/components/Web3ConnectionManager/hooks/useTriggerWalletSelectorModal.ts b/src/v2/components/Web3ConnectionManager/hooks/useTriggerWalletSelectorModal.ts index 7dd3f8e0d1..73f96d4d9d 100644 --- a/src/v2/components/Web3ConnectionManager/hooks/useTriggerWalletSelectorModal.ts +++ b/src/v2/components/Web3ConnectionManager/hooks/useTriggerWalletSelectorModal.ts @@ -1,4 +1,4 @@ -import { walletSelectorModalAtom } from "@/components/Providers/Providers" +import { walletSelectorModalAtom } from "@/components/Providers/atoms" import { useSetAtom } from "jotai" import { useSearchParams } from "next/navigation" import { useEffect } from "react" diff --git a/src/v2/hooks/useUserPublic.ts b/src/v2/hooks/useUserPublic.ts index e01247a0a7..3f9a409807 100644 --- a/src/v2/hooks/useUserPublic.ts +++ b/src/v2/hooks/useUserPublic.ts @@ -1,5 +1,5 @@ import { usePostHogContext } from "@/components/Providers/PostHogProvider" -import { walletSelectorModalAtom } from "@/components/Providers/Providers" +import { walletSelectorModalAtom } from "@/components/Providers/atoms" import { useToast } from "@/components/ui/hooks/useToast" import { useWeb3ConnectionManager } from "@/components/Web3ConnectionManager/hooks/useWeb3ConnectionManager" import { PublicUserProfile } from "@guildxyz/types"