From 468ee903ba18b18c04e06cae448fc75e79c208c9 Mon Sep 17 00:00:00 2001 From: BrickheadJohnny Date: Thu, 11 Jul 2024 14:00:03 +0200 Subject: [PATCH] fix: use the default phosphor icons --- next.config.js | 1 - package-lock.json | 115 ------------------ package.json | 2 +- .../components/SelectLiquidityPoolStep.tsx | 2 +- src/v2/components/Account/Account.tsx | 2 +- .../components/AccountModal/AccountModal.tsx | 2 +- .../components/AccountConnections.tsx | 2 +- .../components/DisconnectAccountButton.tsx | 2 +- .../AccountModal/components/EmailAddress.tsx | 2 +- .../components/FarcasterProfile.tsx | 5 +- .../AccountModal/components/LinkedAddress.tsx | 7 +- .../AccountModal/components/SharedSocials.tsx | 2 +- .../AccountModal/components/SocialAccount.tsx | 2 +- .../components/UsersGuildPins.tsx | 2 +- src/v2/components/Error.tsx | 2 +- src/v2/components/Header/NavMenu.tsx | 2 +- src/v2/components/ThemeToggle.tsx | 4 +- .../PlatformMergeErrorAlert.tsx | 2 +- .../WalletLinkHelperModal.tsx | 2 +- .../WalletSelectorModal.tsx | 2 +- .../components/ConnectorButton.tsx | 2 +- src/v2/components/ui/Accordion.stories.tsx | 2 +- src/v2/components/ui/Accordion.tsx | 2 +- src/v2/components/ui/Alert.stories.tsx | 2 +- src/v2/components/ui/Button.tsx | 2 +- src/v2/components/ui/Dialog.tsx | 2 +- src/v2/components/ui/DropdownMenu.tsx | 2 +- src/v2/components/ui/InputOTP.tsx | 2 +- src/v2/components/ui/Toast.tsx | 2 +- 29 files changed, 28 insertions(+), 152 deletions(-) diff --git a/next.config.js b/next.config.js index 18881f45a1..0e6b1a187d 100644 --- a/next.config.js +++ b/next.config.js @@ -95,7 +95,6 @@ const nextConfig = { scrollRestoration: true, optimizePackageImports: [ "@phosphor-icons/react", - "@phosphor-icons/react/dist/ssr", "@fuels/react", "fuels", ], diff --git a/package-lock.json b/package-lock.json index 7ba41a8015..c4a28c0351 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,7 +14,6 @@ "@chakra-ui/next-js": "^2.2.0", "@chakra-ui/react": "^2.8.2", "@chakra-ui/theme-tools": "^2.0.17", - "@coinbase/waas-sdk-web": "^3.3.2", "@dotlottie/react-player": "^1.6.18", "@emotion/react": "^11.11.4", "@emotion/styled": "^11.11.0", @@ -3531,54 +3530,6 @@ "yarn": ">=1.22.18" } }, - "node_modules/@coinbase/corekms": { - "version": "0.1.12", - "resolved": "https://registry.npmjs.org/@coinbase/corekms/-/corekms-0.1.12.tgz", - "integrity": "sha512-wXtXIW3iDMP+6MQqbO5kZUyWUmBZRz1It00dlRuEd+itqPUMvmOMG1kdNgbufOezk+R73ha0a8el4DhV02EEZQ==" - }, - "node_modules/@coinbase/sandbox-rpc": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/@coinbase/sandbox-rpc/-/sandbox-rpc-1.1.6.tgz", - "integrity": "sha512-CrBQJ/sY2MPwsPaLWCaRwdRa/LISdZKB/e4jm1wyITeUtKA7zN46uF1g4L+A768kxcDj/QjMa7B1M8R5BciI/A==" - }, - "node_modules/@coinbase/waas-sdk-web": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/@coinbase/waas-sdk-web/-/waas-sdk-web-3.3.2.tgz", - "integrity": "sha512-nMvbfVuhfa1NGwsRhyN1EzOHgBI0VYHuRt3+n1N1uj0VZLJP3DO4g2g3JZM2e9dbOMB8OyK/WnYoQvi8XxwG8Q==", - "dependencies": { - "@bugsnag/js": "^7.22.3", - "@coinbase/corekms": "0.1.12", - "@coinbase/sandbox-rpc": "1.1.6", - "client-analytics": "0.0.8" - }, - "optionalDependencies": { - "@coinbase/cbpay-js": "^1.10.0" - } - }, - "node_modules/@coinbase/waas-sdk-web/node_modules/@coinbase/cbpay-js": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/@coinbase/cbpay-js/-/cbpay-js-1.10.0.tgz", - "integrity": "sha512-jQ4rqJFNbsCMZ74ATucAUv2IpkbPFXsY+6AVBvFVNKmG4rEgc10Fa87pw/idm6Tlrs7EERQRXEs21DvJpMzi8A==", - "optional": true, - "engines": { - "node": ">= 14" - }, - "peerDependencies": { - "regenerator-runtime": "^0.13.9" - }, - "peerDependenciesMeta": { - "regenerator-runtime": { - "optional": true - } - } - }, - "node_modules/@coinbase/waas-sdk-web/node_modules/regenerator-runtime": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz", - "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==", - "optional": true, - "peer": true - }, "node_modules/@coinbase/wallet-sdk": { "version": "4.0.4", "license": "Apache-2.0", @@ -11758,11 +11709,6 @@ "version": "2.0.10", "license": "MIT" }, - "node_modules/@types/history": { - "version": "4.7.11", - "resolved": "https://registry.npmjs.org/@types/history/-/history-4.7.11.tgz", - "integrity": "sha512-qjDJRrmvBMiTx+jyLxvLfJU7UznFuokDv4f3WRuriHKERccVpFU+8XMQUAbDzoiJCsmexxRExQeMwwCdamSKDA==" - }, "node_modules/@types/html-minifier-terser": { "version": "6.1.0", "dev": true, @@ -11918,15 +11864,6 @@ "@types/react": "*" } }, - "node_modules/@types/react-router": { - "version": "5.1.20", - "resolved": "https://registry.npmjs.org/@types/react-router/-/react-router-5.1.20.tgz", - "integrity": "sha512-jGjmu/ZqS7FjSH6owMcD5qpq19+1RS9DeVRqfl1FeBMxTDQAGwlMWOcs52NDoXaNKyG3d1cYQFMs9rCrb88o9Q==", - "dependencies": { - "@types/history": "^4.7.11", - "@types/react": "*" - } - }, "node_modules/@types/react-transition-group": { "version": "4.4.10", "license": "MIT", @@ -15697,14 +15634,6 @@ "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/charenc": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/charenc/-/charenc-0.0.2.tgz", - "integrity": "sha512-yrLQ/yVUFXkzg7EDQsPieE/53+0RlaWTs+wBrvW36cyilJ2SaDWfl4Yj7MtLTXleV9uEKefbAGUPv2/iWSooRA==", - "engines": { - "node": "*" - } - }, "node_modules/check-error": { "version": "1.0.3", "dev": true, @@ -15962,16 +15891,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/client-analytics": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/client-analytics/-/client-analytics-0.0.8.tgz", - "integrity": "sha512-bpatUip8gT8y9r4GkoaIf+0TvVo/3NsSqQ61erMgjVtIfAVnWAj0H6S/IjKxQc6E2Aebj5bX8ZBMueyVj0f6Rg==", - "dependencies": { - "@types/react-router": "^5.1.20", - "md5": "^2.3.0", - "perfume.js": "^9.2.0" - } - }, "node_modules/client-only": { "version": "0.0.1", "license": "MIT" @@ -16680,14 +16599,6 @@ } } }, - "node_modules/crypt": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/crypt/-/crypt-0.0.2.tgz", - "integrity": "sha512-mCxBlsHFYh9C+HVpiEacem8FEBnMXgU9gy4zmNC+SXAZNB/1idgp/aulFJ4FgCi7GPEVbfyng092GqL2k2rmow==", - "engines": { - "node": "*" - } - }, "node_modules/crypto-browserify": { "version": "3.12.0", "dev": true, @@ -22773,16 +22684,6 @@ "version": "1.4.0", "license": "MIT" }, - "node_modules/md5": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/md5/-/md5-2.3.0.tgz", - "integrity": "sha512-T1GITYmFaKuO91vxyoQMFETst+O71VUPEU3ze5GNzDm0OWdP8v1ziTaAEPUr/3kLsY3Sftgz242A1SetQiDL7g==", - "dependencies": { - "charenc": "0.0.2", - "crypt": "0.0.2", - "is-buffer": "~1.1.6" - } - }, "node_modules/md5.js": { "version": "1.3.5", "dev": true, @@ -25674,22 +25575,6 @@ "version": "2.1.0", "license": "MIT" }, - "node_modules/perfume.js": { - "version": "9.4.0", - "resolved": "https://registry.npmjs.org/perfume.js/-/perfume.js-9.4.0.tgz", - "integrity": "sha512-YYxGBYm2OcDx68GhzX/N3h4RrtViAz7Whgk7dA6j1bC9NxBGIG8c+rs+K3ql/dW4KReszN8ptAC1ghUGdWNsMQ==", - "dependencies": { - "web-vitals": "^3.5.0" - }, - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/perfume.js/node_modules/web-vitals": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/web-vitals/-/web-vitals-3.5.2.tgz", - "integrity": "sha512-c0rhqNcHXRkY/ogGDJQxZ9Im9D19hDihbzSQJrsioex+KnFgmMzBiy57Z1EjkhX/+OjyBpclDCzz2ITtjokFmg==" - }, "node_modules/pg-int8": { "version": "1.0.1", "license": "ISC", diff --git a/package.json b/package.json index 2261ea4ebc..35a74c895e 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "scripts": { "prepare": "npm run snyk-protect && husky install", "dev": "next dev", - "build": "TS_CONFIG_PATH='./tsconfig.build.json' next build", + "build": "NODE_OPTIONS='--max-old-space-size=4096' TS_CONFIG_PATH='./tsconfig.build.json' next build", "start": "next start", "type-check": "tsc --pretty --noEmit --incremental false --project './tsconfig.build.json'", "format": "prettier --write .", diff --git a/src/solutions/LiquidityIncentive/components/SelectLiquidityPoolStep.tsx b/src/solutions/LiquidityIncentive/components/SelectLiquidityPoolStep.tsx index 9029e0d2c1..ef004eadb1 100644 --- a/src/solutions/LiquidityIncentive/components/SelectLiquidityPoolStep.tsx +++ b/src/solutions/LiquidityIncentive/components/SelectLiquidityPoolStep.tsx @@ -16,7 +16,7 @@ import { Text, } from "@chakra-ui/react" import { consts } from "@guildxyz/types" -import { Info } from "@phosphor-icons/react/dist/ssr" +import { Info } from "@phosphor-icons/react" import Button from "components/common/Button" import FormErrorMessage from "components/common/FormErrorMessage" import { useCallback } from "react" diff --git a/src/v2/components/Account/Account.tsx b/src/v2/components/Account/Account.tsx index 6e7fd64e22..6c15c08379 100644 --- a/src/v2/components/Account/Account.tsx +++ b/src/v2/components/Account/Account.tsx @@ -1,7 +1,7 @@ "use client" import { cn } from "@/lib/utils" -import { SignIn } from "@phosphor-icons/react/dist/ssr" +import { SignIn } from "@phosphor-icons/react" import useUser from "components/[guild]/hooks/useUser" import useResolveAddress from "hooks/useResolveAddress" import { useSetAtom } from "jotai" diff --git a/src/v2/components/Account/components/AccountModal/AccountModal.tsx b/src/v2/components/Account/components/AccountModal/AccountModal.tsx index 480bf42a18..0127498c48 100644 --- a/src/v2/components/Account/components/AccountModal/AccountModal.tsx +++ b/src/v2/components/Account/components/AccountModal/AccountModal.tsx @@ -19,7 +19,7 @@ import { } from "@/components/ui/Tooltip" import { useDisclosure } from "@/hooks/useDisclosure" import { useUserPublic } from "@/hooks/useUserPublic" -import { LinkBreak, SignOut } from "@phosphor-icons/react/dist/ssr" +import { LinkBreak, SignOut } from "@phosphor-icons/react" import useUser from "components/[guild]/hooks/useUser" import useResolveAddress from "hooks/useResolveAddress" import { useAtom } from "jotai" diff --git a/src/v2/components/Account/components/AccountModal/components/AccountConnections.tsx b/src/v2/components/Account/components/AccountModal/components/AccountConnections.tsx index 65d20f4b5d..da11a02bde 100644 --- a/src/v2/components/Account/components/AccountModal/components/AccountConnections.tsx +++ b/src/v2/components/Account/components/AccountModal/components/AccountConnections.tsx @@ -5,7 +5,7 @@ import { TooltipTrigger, } from "@/components/ui/Tooltip" import { cn } from "@/lib/utils" -import { Question } from "@phosphor-icons/react/dist/ssr" +import { Question } from "@phosphor-icons/react" import useUser from "components/[guild]/hooks/useUser" import { Fragment, useMemo } from "react" import rewards from "rewards" diff --git a/src/v2/components/Account/components/AccountModal/components/DisconnectAccountButton.tsx b/src/v2/components/Account/components/AccountModal/components/DisconnectAccountButton.tsx index 1542d96b76..fda194a2ee 100644 --- a/src/v2/components/Account/components/AccountModal/components/DisconnectAccountButton.tsx +++ b/src/v2/components/Account/components/AccountModal/components/DisconnectAccountButton.tsx @@ -17,7 +17,7 @@ import { } from "@/components/ui/Tooltip" import { DisclosureState } from "@/hooks/useDisclosure" import { cn } from "@/lib/utils" -import { LinkBreak } from "@phosphor-icons/react/dist/ssr" +import { LinkBreak } from "@phosphor-icons/react" const DisconnectAccountButton = ({ onConfirm, diff --git a/src/v2/components/Account/components/AccountModal/components/EmailAddress.tsx b/src/v2/components/Account/components/AccountModal/components/EmailAddress.tsx index d6ea0ff802..9440324b8d 100644 --- a/src/v2/components/Account/components/AccountModal/components/EmailAddress.tsx +++ b/src/v2/components/Account/components/AccountModal/components/EmailAddress.tsx @@ -28,7 +28,7 @@ import { useToast } from "@/components/ui/hooks/useToast" import { useDisclosure } from "@/hooks/useDisclosure" import { cn } from "@/lib/utils" import { zodResolver } from "@hookform/resolvers/zod" -import { PencilSimple, Warning } from "@phosphor-icons/react/dist/ssr" +import { PencilSimple, Warning } from "@phosphor-icons/react" import { useConnectEmail } from "components/[guild]/JoinModal/hooks/useConnectPlatform" import useUser from "components/[guild]/hooks/useUser" import { SignedValidation, useSubmitWithSign } from "hooks/useSubmit" diff --git a/src/v2/components/Account/components/AccountModal/components/FarcasterProfile.tsx b/src/v2/components/Account/components/AccountModal/components/FarcasterProfile.tsx index 3c585e3ffb..8fa5a03394 100644 --- a/src/v2/components/Account/components/AccountModal/components/FarcasterProfile.tsx +++ b/src/v2/components/Account/components/AccountModal/components/FarcasterProfile.tsx @@ -25,10 +25,7 @@ import { useToast } from "@/components/ui/hooks/useToast" import { useDisclosure } from "@/hooks/useDisclosure" import { cn } from "@/lib/utils" import { FarcasterProfile as FarcasterProfileType } from "@guildxyz/types" -import { - ArrowCounterClockwise, - DeviceMobileCamera, -} from "@phosphor-icons/react/dist/ssr" +import { ArrowCounterClockwise, DeviceMobileCamera } from "@phosphor-icons/react" import useUser from "components/[guild]/hooks/useUser" import { useFetcherWithSign } from "hooks/useFetcherWithSign" import useSubmit, { SignedValidation, useSubmitWithSign } from "hooks/useSubmit" diff --git a/src/v2/components/Account/components/AccountModal/components/LinkedAddress.tsx b/src/v2/components/Account/components/AccountModal/components/LinkedAddress.tsx index 6d6546c99c..480ad0f0de 100644 --- a/src/v2/components/Account/components/AccountModal/components/LinkedAddress.tsx +++ b/src/v2/components/Account/components/AccountModal/components/LinkedAddress.tsx @@ -28,12 +28,7 @@ import { TooltipTrigger, } from "@/components/ui/Tooltip" import { useDisclosure } from "@/hooks/useDisclosure" -import { - CircleNotch, - DotsThree, - LinkBreak, - UserSwitch, -} from "@phosphor-icons/react/dist/ssr" +import { CircleNotch, DotsThree, LinkBreak, UserSwitch } from "@phosphor-icons/react" import Image from "next/image" import { User } from "types" import shortenHex from "utils/shortenHex" diff --git a/src/v2/components/Account/components/AccountModal/components/SharedSocials.tsx b/src/v2/components/Account/components/AccountModal/components/SharedSocials.tsx index 19f9fbd86d..0063a10173 100644 --- a/src/v2/components/Account/components/AccountModal/components/SharedSocials.tsx +++ b/src/v2/components/Account/components/AccountModal/components/SharedSocials.tsx @@ -5,7 +5,7 @@ import { Check, Shield, ShieldCheck, -} from "@phosphor-icons/react/dist/ssr" +} from "@phosphor-icons/react" import useGuild, { useSimpleGuild } from "components/[guild]/hooks/useGuild" import useUser from "components/[guild]/hooks/useUser" diff --git a/src/v2/components/Account/components/AccountModal/components/SocialAccount.tsx b/src/v2/components/Account/components/AccountModal/components/SocialAccount.tsx index 889e3f09a1..b69b594db2 100644 --- a/src/v2/components/Account/components/AccountModal/components/SocialAccount.tsx +++ b/src/v2/components/Account/components/AccountModal/components/SocialAccount.tsx @@ -2,7 +2,7 @@ import { Button } from "@/components/ui/Button" import { useToast } from "@/components/ui/hooks/useToast" import { useDisclosure } from "@/hooks/useDisclosure" import { cn } from "@/lib/utils" -import { Warning } from "@phosphor-icons/react/dist/ssr" +import { Warning } from "@phosphor-icons/react" import useConnectPlatform from "components/[guild]/JoinModal/hooks/useConnectPlatform" import useMembershipUpdate from "components/[guild]/JoinModal/hooks/useMembershipUpdate" import useUser from "components/[guild]/hooks/useUser" diff --git a/src/v2/components/Account/components/AccountModal/components/UsersGuildPins.tsx b/src/v2/components/Account/components/AccountModal/components/UsersGuildPins.tsx index 23c07a6bad..ddb008828d 100644 --- a/src/v2/components/Account/components/AccountModal/components/UsersGuildPins.tsx +++ b/src/v2/components/Account/components/AccountModal/components/UsersGuildPins.tsx @@ -4,7 +4,7 @@ import { Alert, AlertDescription } from "@/components/ui/Alert" import { Badge } from "@/components/ui/Badge" import { Skeleton } from "@/components/ui/Skeleton" import useUsersGuildPins from "@/hooks/useUsersGuildPins" -import { Info } from "@phosphor-icons/react/dist/ssr" +import { Info } from "@phosphor-icons/react" import { useAtomValue, useSetAtom } from "jotai" import Link from "next/link" diff --git a/src/v2/components/Error.tsx b/src/v2/components/Error.tsx index 098e5666a7..a595802d30 100644 --- a/src/v2/components/Error.tsx +++ b/src/v2/components/Error.tsx @@ -1,4 +1,4 @@ -import { WarningCircle } from "@phosphor-icons/react/dist/ssr" +import { WarningCircle } from "@phosphor-icons/react" import { PropsWithChildren, useEffect, useState } from "react" import { Alert, AlertDescription, AlertTitle } from "./ui/Alert" import { Collapsible, CollapsibleContent } from "./ui/Collapsible" diff --git a/src/v2/components/Header/NavMenu.tsx b/src/v2/components/Header/NavMenu.tsx index 2738486934..33392b71fb 100644 --- a/src/v2/components/Header/NavMenu.tsx +++ b/src/v2/components/Header/NavMenu.tsx @@ -14,7 +14,7 @@ import { Shield, UsersThree, XLogo, -} from "@phosphor-icons/react/dist/ssr" +} from "@phosphor-icons/react" import dynamic from "next/dynamic" import Link, { LinkProps } from "next/link" import { AnchorHTMLAttributes, ReactNode } from "react" diff --git a/src/v2/components/ThemeToggle.tsx b/src/v2/components/ThemeToggle.tsx index c55cb212ec..c8e159f421 100644 --- a/src/v2/components/ThemeToggle.tsx +++ b/src/v2/components/ThemeToggle.tsx @@ -2,9 +2,9 @@ import { ToggleGroup, ToggleGroupItem } from "@/components/ui/ToggleGroup" import { useColorMode } from "@chakra-ui/react" -import { Desktop, Moon, Sun } from "@phosphor-icons/react/dist/ssr" +import { Desktop, Moon, Sun } from "@phosphor-icons/react" import { useTheme } from "next-themes" -import { useIsClient, useLocalStorage } from "usehooks-ts" +import { useIsClient } from "usehooks-ts" export function ThemeToggle() { const { setTheme, theme } = useTheme() diff --git a/src/v2/components/Web3ConnectionManager/PlatformMergeErrorAlert.tsx b/src/v2/components/Web3ConnectionManager/PlatformMergeErrorAlert.tsx index 8b0a693914..ff00b9266b 100644 --- a/src/v2/components/Web3ConnectionManager/PlatformMergeErrorAlert.tsx +++ b/src/v2/components/Web3ConnectionManager/PlatformMergeErrorAlert.tsx @@ -1,4 +1,4 @@ -import { ArrowSquareOut } from "@phosphor-icons/react/dist/ssr" +import { ArrowSquareOut } from "@phosphor-icons/react" import useConnectPlatform from "components/[guild]/JoinModal/hooks/useConnectPlatform" import { useAtom } from "jotai" import rewards from "rewards" diff --git a/src/v2/components/Web3ConnectionManager/WalletLinkHelperModal.tsx b/src/v2/components/Web3ConnectionManager/WalletLinkHelperModal.tsx index 7c6b42e104..075e975cbb 100644 --- a/src/v2/components/Web3ConnectionManager/WalletLinkHelperModal.tsx +++ b/src/v2/components/Web3ConnectionManager/WalletLinkHelperModal.tsx @@ -1,4 +1,4 @@ -import { SignOut } from "@phosphor-icons/react/dist/ssr" +import { SignOut } from "@phosphor-icons/react" import { useAtom } from "jotai" import { walletLinkHelperModalAtom } from "../Providers/atoms" import { Button } from "../ui/Button" diff --git a/src/v2/components/Web3ConnectionManager/WalletSelectorModal/WalletSelectorModal.tsx b/src/v2/components/Web3ConnectionManager/WalletSelectorModal/WalletSelectorModal.tsx index 14fdd3f8ac..8421294d3d 100644 --- a/src/v2/components/Web3ConnectionManager/WalletSelectorModal/WalletSelectorModal.tsx +++ b/src/v2/components/Web3ConnectionManager/WalletSelectorModal/WalletSelectorModal.tsx @@ -18,7 +18,7 @@ import { import { useErrorToast } from "@/components/ui/hooks/useErrorToast" import { usePrevious } from "@/hooks/usePrevious" import { useUserPublic } from "@/hooks/useUserPublic" -import { ArrowSquareOut } from "@phosphor-icons/react/dist/ssr" +import { ArrowSquareOut } from "@phosphor-icons/react" import useSetKeyPair from "hooks/useSetKeyPair" import { useAtom, useSetAtom } from "jotai" import { useEffect } from "react" diff --git a/src/v2/components/Web3ConnectionManager/WalletSelectorModal/components/ConnectorButton.tsx b/src/v2/components/Web3ConnectionManager/WalletSelectorModal/components/ConnectorButton.tsx index 45aee06181..10320a0823 100644 --- a/src/v2/components/Web3ConnectionManager/WalletSelectorModal/components/ConnectorButton.tsx +++ b/src/v2/components/Web3ConnectionManager/WalletSelectorModal/components/ConnectorButton.tsx @@ -5,7 +5,7 @@ import { import useConnectorNameAndIcon from "@/components/Web3ConnectionManager/hooks/useConnectorNameAndIcon" import { Button, ButtonProps } from "@/components/ui/Button" import { useUserPublic } from "@/hooks/useUserPublic" -import { Wallet } from "@phosphor-icons/react/dist/ssr" +import { Wallet } from "@phosphor-icons/react" import { useAtomValue, useSetAtom } from "jotai" import { Config, type Connector, useAccount } from "wagmi" import { ConnectMutate } from "wagmi/query" diff --git a/src/v2/components/ui/Accordion.stories.tsx b/src/v2/components/ui/Accordion.stories.tsx index 5236257847..dd8ba43457 100644 --- a/src/v2/components/ui/Accordion.stories.tsx +++ b/src/v2/components/ui/Accordion.stories.tsx @@ -4,7 +4,7 @@ import { AccordionItem, AccordionTrigger, } from "@/components/ui/Accordion" -import { ArrowSquareOut } from "@phosphor-icons/react/dist/ssr" +import { ArrowSquareOut } from "@phosphor-icons/react" import { AccordionMultipleProps, AccordionSingleProps, diff --git a/src/v2/components/ui/Accordion.tsx b/src/v2/components/ui/Accordion.tsx index c81a82eb78..60712b34c7 100644 --- a/src/v2/components/ui/Accordion.tsx +++ b/src/v2/components/ui/Accordion.tsx @@ -1,7 +1,7 @@ "use client" import { cn } from "@/lib/utils" -import { CaretDown } from "@phosphor-icons/react/dist/ssr" +import { CaretDown } from "@phosphor-icons/react" import * as AccordionPrimitive from "@radix-ui/react-accordion" import * as React from "react" diff --git a/src/v2/components/ui/Alert.stories.tsx b/src/v2/components/ui/Alert.stories.tsx index 259c181a07..776e9bfea5 100644 --- a/src/v2/components/ui/Alert.stories.tsx +++ b/src/v2/components/ui/Alert.stories.tsx @@ -5,7 +5,7 @@ import { Info as InfoIcon, Warning as WarningIcon, X, -} from "@phosphor-icons/react/dist/ssr" +} from "@phosphor-icons/react" import { Alert, AlertDescription, AlertProps, AlertTitle } from "./Alert" import { Card } from "./Card" diff --git a/src/v2/components/ui/Button.tsx b/src/v2/components/ui/Button.tsx index a359c55d20..d829751dca 100644 --- a/src/v2/components/ui/Button.tsx +++ b/src/v2/components/ui/Button.tsx @@ -3,7 +3,7 @@ import { type VariantProps, cva } from "class-variance-authority" import * as React from "react" import { cn } from "@/lib/utils" -import { CircleNotch } from "@phosphor-icons/react/dist/ssr" +import { CircleNotch } from "@phosphor-icons/react" const buttonVariants = cva( "font-medium inline-flex items-center justify-center whitespace-nowrap transition-colors focus-visible:outline-none focus-visible:ring-4 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 rounded-xl text-base min-w-max", diff --git a/src/v2/components/ui/Dialog.tsx b/src/v2/components/ui/Dialog.tsx index 465d17d793..95ddff8bbc 100644 --- a/src/v2/components/ui/Dialog.tsx +++ b/src/v2/components/ui/Dialog.tsx @@ -1,6 +1,6 @@ "use client" -import { X } from "@phosphor-icons/react/dist/ssr" +import { X } from "@phosphor-icons/react" import * as DialogPrimitive from "@radix-ui/react-dialog" import { FocusScope, FocusScopeProps } from "@radix-ui/react-focus-scope" import * as React from "react" diff --git a/src/v2/components/ui/DropdownMenu.tsx b/src/v2/components/ui/DropdownMenu.tsx index afc91ac456..0fc17cdb03 100644 --- a/src/v2/components/ui/DropdownMenu.tsx +++ b/src/v2/components/ui/DropdownMenu.tsx @@ -1,7 +1,7 @@ "use client" import { cn } from "@/lib/utils" -import { CaretRight, Check, Dot } from "@phosphor-icons/react/dist/ssr" +import { CaretRight, Check, Dot } from "@phosphor-icons/react" import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu" import { ComponentPropsWithoutRef, diff --git a/src/v2/components/ui/InputOTP.tsx b/src/v2/components/ui/InputOTP.tsx index 4960111718..6858395d5c 100644 --- a/src/v2/components/ui/InputOTP.tsx +++ b/src/v2/components/ui/InputOTP.tsx @@ -1,7 +1,7 @@ "use client" import { cn } from "@/lib/utils" -import { Minus } from "@phosphor-icons/react/dist/ssr" +import { Minus } from "@phosphor-icons/react" import { OTPInput, OTPInputContext } from "input-otp" import { ComponentPropsWithoutRef, ElementRef, forwardRef, useContext } from "react" diff --git a/src/v2/components/ui/Toast.tsx b/src/v2/components/ui/Toast.tsx index 1cad5a4542..d83ba88173 100644 --- a/src/v2/components/ui/Toast.tsx +++ b/src/v2/components/ui/Toast.tsx @@ -5,7 +5,7 @@ import { type VariantProps, cva } from "class-variance-authority" import * as React from "react" import { cn } from "@/lib/utils" -import { X } from "@phosphor-icons/react/dist/ssr" +import { X } from "@phosphor-icons/react" const ToastProvider = ToastPrimitives.Provider