diff --git a/packages/keychain/src/components/CopyAddress.tsx b/packages/keychain/src/components/CopyAddress.tsx index 16de61687..48a25db51 100644 --- a/packages/keychain/src/components/CopyAddress.tsx +++ b/packages/keychain/src/components/CopyAddress.tsx @@ -1,4 +1,3 @@ -import { CopyIcon } from "@cartridge/ui"; import { HStack, Text } from "@chakra-ui/react"; import { formatAddress } from "@cartridge/utils"; import { useToast } from "@/hooks/toast"; @@ -16,7 +15,6 @@ export function CopyAddress({ address }: { address: string }) { }} > {formatAddress(address)} - ); } diff --git a/packages/keychain/src/components/DeployController.tsx b/packages/keychain/src/components/DeployController.tsx index 47334a440..8219bdaa8 100644 --- a/packages/keychain/src/components/DeployController.tsx +++ b/packages/keychain/src/components/DeployController.tsx @@ -6,7 +6,7 @@ import { import { Container, Footer, Content } from "@/components/layout"; import { useCallback, useEffect, useState } from "react"; import { Button, Link, Spinner } from "@chakra-ui/react"; -import { CheckIcon, ExternalIcon, WandIcon } from "@cartridge/ui"; +import { CheckIcon, ExternalIcon, WandIcon } from "@cartridge/ui-next"; import { Funding } from "./Funding"; import { useConnection } from "@/hooks/connection"; import { ControllerErrorAlert, ErrorAlert } from "./ErrorAlert"; diff --git a/packages/keychain/src/components/ErrorAlert.tsx b/packages/keychain/src/components/ErrorAlert.tsx index e9a36ba7e..9a4fcdf89 100644 --- a/packages/keychain/src/components/ErrorAlert.tsx +++ b/packages/keychain/src/components/ErrorAlert.tsx @@ -1,11 +1,11 @@ import { AlertIcon, InfoIcon, - WedgeDownIcon, + WedgeIcon, WarningIcon, CopyIcon, CheckIcon, -} from "@cartridge/ui"; +} from "@cartridge/ui-next"; import { Text, Accordion, @@ -73,11 +73,13 @@ export function ErrorAlert({ {(() => { switch (variant) { case "info": - return ; + return ; case "warning": - return ; + return ( + + ); case "error": - return ; + return ; default: return null; } @@ -103,7 +105,7 @@ export function ErrorAlert({ rotate: itemExpanded ? 180 : 0, }} > - + )} @@ -114,16 +116,16 @@ export function ErrorAlert({ {copyText && ( + ) : ( - + ) } onClick={() => { diff --git a/packages/keychain/src/components/layout/Container/Header/Banner.tsx b/packages/keychain/src/components/layout/Container/Header/Banner.tsx index 5a5043c8a..118491207 100644 --- a/packages/keychain/src/components/layout/Container/Header/Banner.tsx +++ b/packages/keychain/src/components/layout/Container/Header/Banner.tsx @@ -2,7 +2,6 @@ import { VStack, Circle, Text, - IconProps, Center, Flex, Image, @@ -14,6 +13,7 @@ import { useControllerTheme } from "@/hooks/theme"; import { useMemo } from "react"; import { useLayoutVariant } from "../"; import { TOP_BAR_HEIGHT } from "./TopBar"; +import { IconProps } from "@cartridge/ui-next"; export type BannerProps = { Icon?: React.ComponentType; @@ -80,7 +80,7 @@ export function Banner({ Icon, icon, title, description }: BannerProps) { > {Icon ? ( - + ) : icon ? ( @@ -130,7 +130,7 @@ export function Banner({ Icon, icon, title, description }: BannerProps) { {Icon ? ( - + ) : icon ? (