diff --git a/packages/keychain/src/components/ConfirmTransaction.tsx b/packages/keychain/src/components/ConfirmTransaction.tsx
index bcc557705..6d65d90a3 100644
--- a/packages/keychain/src/components/ConfirmTransaction.tsx
+++ b/packages/keychain/src/components/ConfirmTransaction.tsx
@@ -1,7 +1,7 @@
import { useEffect, useMemo, useState } from "react";
import { ResponseCodes, SessionPolicies, toArray } from "@cartridge/controller";
import { Content, FOOTER_MIN_HEIGHT } from "@/components/layout";
-import { TransactionDuoIcon } from "@cartridge/ui";
+import { TransactionDuoIcon } from "@cartridge/ui-next";
import { useConnection } from "@/hooks/connection";
import { Policies } from "@/components/Policies";
import { ExecuteCtx } from "@/utils/connection";
diff --git a/packages/keychain/src/components/ErrorBoundary.tsx b/packages/keychain/src/components/ErrorBoundary.tsx
index 219a2befb..4bc296be0 100644
--- a/packages/keychain/src/components/ErrorBoundary.tsx
+++ b/packages/keychain/src/components/ErrorBoundary.tsx
@@ -1,6 +1,6 @@
import React, { PropsWithChildren, useEffect } from "react";
import { Container, Content, Footer } from "./layout";
-import { AlertIcon, ExternalIcon } from "@cartridge/ui";
+import { AlertIcon, ExternalIcon } from "@cartridge/ui-next";
import { Button, HStack, Link, Text } from "@chakra-ui/react";
import { useConnection } from "@/hooks/connection";
import { CARTRIDGE_DISCORD_LINK } from "@/const";
diff --git a/packages/keychain/src/components/Fees.tsx b/packages/keychain/src/components/Fees.tsx
index 413398741..bc7ffe3af 100644
--- a/packages/keychain/src/components/Fees.tsx
+++ b/packages/keychain/src/components/Fees.tsx
@@ -7,10 +7,9 @@ import {
Text,
VStack,
} from "@chakra-ui/react";
-
import { formatUnits } from "viem";
import { useChainId } from "@/hooks/connection";
-import { EthereumIcon, InfoIcon, WarningIcon } from "@cartridge/ui";
+import { EthereumIcon, InfoIcon, WarningIcon } from "@cartridge/ui-next";
export function Fees({
maxFee,
diff --git a/packages/keychain/src/components/Funding/Balance.tsx b/packages/keychain/src/components/Funding/Balance.tsx
index 686347cac..59eefd8bf 100644
--- a/packages/keychain/src/components/Funding/Balance.tsx
+++ b/packages/keychain/src/components/Funding/Balance.tsx
@@ -63,7 +63,7 @@ export function Balance({ showBalances }: BalanceProps) {
{creditBalance.formatted}
- ${creditBalance.formatted}
+ {creditBalance.formatted}
diff --git a/packages/keychain/src/components/Funding/DepositEth.tsx b/packages/keychain/src/components/Funding/DepositEth.tsx
index 616db9b8f..8c831d5c1 100644
--- a/packages/keychain/src/components/Funding/DepositEth.tsx
+++ b/packages/keychain/src/components/Funding/DepositEth.tsx
@@ -20,11 +20,11 @@ import {
} from "starknet";
import {
ArgentIcon,
- BravosIcon,
+ BraavosIcon,
CopyIcon,
EthereumIcon,
StarknetColorIcon,
-} from "@cartridge/ui";
+} from "@cartridge/ui-next";
import { useConnection } from "@/hooks/connection";
import { useToast } from "@/hooks/toast";
import { ETH_CONTRACT_ADDRESS } from "@/utils/token";
@@ -198,7 +198,7 @@ function DepositEthInner({ onComplete, onBack }: DepositEthProps) {
)}
{c.name === "braavos" && (
-
+
)}
{c.name}
diff --git a/packages/keychain/src/components/Policies.tsx b/packages/keychain/src/components/Policies.tsx
index e16ce83d2..adcf728d7 100644
--- a/packages/keychain/src/components/Policies.tsx
+++ b/packages/keychain/src/components/Policies.tsx
@@ -9,7 +9,7 @@ import {
AccordionPanel,
Box,
} from "@chakra-ui/react";
-import { FnIcon, WedgeRightIcon } from "@cartridge/ui";
+import { FnIcon, WedgeIcon } from "@cartridge/ui-next";
import { SessionPolicies } from "@cartridge/presets";
import { CopyAddress } from "./CopyAddress";
@@ -62,17 +62,15 @@ export function Policies({
}}
>
-
+
{m.entrypoint}
-
@@ -114,11 +112,9 @@ export function Policies({
-
diff --git a/packages/keychain/src/components/SignMessage.tsx b/packages/keychain/src/components/SignMessage.tsx
index 4aa4dc6d4..36d66e97a 100644
--- a/packages/keychain/src/components/SignMessage.tsx
+++ b/packages/keychain/src/components/SignMessage.tsx
@@ -2,7 +2,7 @@ import { useCallback, useEffect, useMemo, useState } from "react";
import { Button, Flex, Text } from "@chakra-ui/react";
import { shortString, Signature, TypedData } from "starknet";
import { Container, Footer, Content } from "@/components/layout";
-import { TransferDuoIcon } from "@cartridge/ui";
+import { TransferDuoIcon } from "@cartridge/ui-next";
import { useController } from "@/hooks/controller";
export function SignMessage({
diff --git a/packages/keychain/src/components/Transaction.tsx b/packages/keychain/src/components/Transaction.tsx
index fa441fc0f..822fbbbb2 100644
--- a/packages/keychain/src/components/Transaction.tsx
+++ b/packages/keychain/src/components/Transaction.tsx
@@ -1,19 +1,15 @@
import { ReactNode, useEffect, useMemo, useState } from "react";
+import { constants } from "starknet";
import {
- Text,
- Link,
- HStack,
- Circle,
- Spacer,
- Divider,
+ CheckIcon,
+ ExternalIcon,
Spinner,
-} from "@chakra-ui/react";
-
-import { constants } from "starknet";
-import { CheckIcon, ExternalIcon, StarknetIcon } from "@cartridge/ui";
+ StarknetIcon,
+} from "@cartridge/ui-next";
import { useController } from "@/hooks/controller";
import { useChainName } from "@/hooks/chain";
import { StarkscanUrl } from "@cartridge/utils";
+import { Link } from "react-router-dom";
export type TransactionState = "pending" | "success" | "error";
@@ -31,7 +27,7 @@ export function Transaction({
finalized,
}: TransactionProps) {
const [state, setState] = useState("pending");
- const { color, icon } = useMemo(() => getColorIcon(state), [state]);
+ const { icon } = useMemo(() => getColorIcon(state), [state]);
const { controller } = useController();
useEffect(() => {
@@ -58,52 +54,39 @@ export function Transaction({
const chainName = useChainName(chainId);
return (
-
-
-
- {icon}
-
-
- {name}
-
-
-
-
+
+
-
-
-
-
- {chainName}
-
-
-
-
-
+
+
);
}
function getColorIcon(state: TransactionState): {
- color: string;
icon: ReactNode;
} {
switch (state) {
case "success":
return {
- color: "green.400",
- icon: ,
+ icon: ,
};
case "pending":
return {
- color: "white",
- icon: ,
+ icon: ,
};
case "error":
return {
- color: "alert.foreground",
icon: <>>,
};
}
diff --git a/packages/keychain/src/components/failure.stories.tsx b/packages/keychain/src/components/failure.stories.tsx
new file mode 100644
index 000000000..1caf9f5ea
--- /dev/null
+++ b/packages/keychain/src/components/failure.stories.tsx
@@ -0,0 +1,13 @@
+import type { Meta, StoryObj } from "@storybook/react";
+
+import { Failure } from "./failure";
+
+const meta = {
+ component: Failure,
+} satisfies Meta;
+
+export default meta;
+
+type Story = StoryObj;
+
+export const Default: Story = {};
diff --git a/packages/keychain/src/components/failure.tsx b/packages/keychain/src/components/failure.tsx
index 99999576f..0b2bb593f 100644
--- a/packages/keychain/src/components/failure.tsx
+++ b/packages/keychain/src/components/failure.tsx
@@ -1,5 +1,5 @@
import { Container } from "@/components/layout";
-import { AlertIcon, ExternalIcon } from "@cartridge/ui";
+import { AlertIcon, ExternalIcon } from "@cartridge/ui-next";
import { Link as UILink, Text } from "@chakra-ui/react";
import { CARTRIDGE_DISCORD_LINK } from "@/const";
import { Link } from "react-router-dom";
@@ -9,7 +9,7 @@ export function Failure() {
}
+ icon={}
title="Uh-oh something went wrong"
description={
<>
diff --git a/packages/keychain/src/components/pending.stories.tsx b/packages/keychain/src/components/pending.stories.tsx
new file mode 100644
index 000000000..54a7ecb9a
--- /dev/null
+++ b/packages/keychain/src/components/pending.stories.tsx
@@ -0,0 +1,13 @@
+import type { Meta, StoryObj } from "@storybook/react";
+
+import { Pending } from "./pending";
+
+const meta = {
+ component: Pending,
+} satisfies Meta;
+
+export default meta;
+
+type Story = StoryObj;
+
+export const Default: Story = {};
diff --git a/packages/keychain/src/components/pending.tsx b/packages/keychain/src/components/pending.tsx
index 8b60cd8ee..7e9fe6788 100644
--- a/packages/keychain/src/components/pending.tsx
+++ b/packages/keychain/src/components/pending.tsx
@@ -1,7 +1,7 @@
import { useEffect, useState } from "react";
import { useUrlTxns } from "@/hooks/transaction";
import { Transaction, TransactionState } from "@/components/Transaction";
-import { TimerDuoIcon } from "@cartridge/ui";
+import { TimerDuoIcon } from "@cartridge/ui-next";
import { Container, Content } from "@/components/layout";
export function Pending() {
@@ -24,7 +24,7 @@ export function Pending() {
setDescription("Your transaction was successful");
}
- //pending
+ // pending
}, [txnResults, txns]);
return (
diff --git a/packages/keychain/src/components/success.tsx b/packages/keychain/src/components/success.tsx
index 2b2a571b3..4a4798e08 100644
--- a/packages/keychain/src/components/success.tsx
+++ b/packages/keychain/src/components/success.tsx
@@ -1,5 +1,5 @@
import { Container } from "@/components/layout";
-import { SparklesDuoIcon } from "@cartridge/ui";
+import { SparklesDuoIcon } from "@cartridge/ui-next";
import { useSearchParams } from "react-router-dom";
export function Success() {