From 250c703b9096a24a85270475a15924eb9a9a7f4d Mon Sep 17 00:00:00 2001 From: JunichiSugiura Date: Fri, 20 Dec 2024 17:06:25 +0900 Subject: [PATCH] Replace chakra icon props with tw classes --- packages/keychain/src/components/DeployController.tsx | 4 ++-- packages/keychain/src/components/ErrorAlert.tsx | 4 ++-- packages/keychain/src/components/ErrorBoundary.tsx | 2 +- packages/keychain/src/components/Fees.tsx | 4 +++- .../keychain/src/components/connect/SessionConsent.tsx | 2 +- packages/keychain/src/components/session/ContractCard.tsx | 2 +- packages/ui-next/src/components/network.tsx | 8 ++++---- 7 files changed, 14 insertions(+), 12 deletions(-) diff --git a/packages/keychain/src/components/DeployController.tsx b/packages/keychain/src/components/DeployController.tsx index 8219bdaa8..3463e718e 100644 --- a/packages/keychain/src/components/DeployController.tsx +++ b/packages/keychain/src/components/DeployController.tsx @@ -125,7 +125,7 @@ export function DeployController({ return ( } + icon={} title="Deploy Controller" description="This will initialize your controller on the new network" > @@ -199,7 +199,7 @@ export function DeployController({ return ( } + icon={} title="Success!" description={`Your controller has been deployed on ${chainName}`} > diff --git a/packages/keychain/src/components/ErrorAlert.tsx b/packages/keychain/src/components/ErrorAlert.tsx index db0a5898a..61d731ad8 100644 --- a/packages/keychain/src/components/ErrorAlert.tsx +++ b/packages/keychain/src/components/ErrorAlert.tsx @@ -122,9 +122,9 @@ export function ErrorAlert({ aria-label="Copy stacktrace" icon={ copied ? ( - + ) : ( - + ) } onClick={() => { diff --git a/packages/keychain/src/components/ErrorBoundary.tsx b/packages/keychain/src/components/ErrorBoundary.tsx index 4bc296be0..ed3389ffe 100644 --- a/packages/keychain/src/components/ErrorBoundary.tsx +++ b/packages/keychain/src/components/ErrorBoundary.tsx @@ -78,7 +78,7 @@ export function ErrorPage({ error }: { error: Error }) { Cartridge Discord - + diff --git a/packages/keychain/src/components/Fees.tsx b/packages/keychain/src/components/Fees.tsx index d1bf3c972..94de36286 100644 --- a/packages/keychain/src/components/Fees.tsx +++ b/packages/keychain/src/components/Fees.tsx @@ -81,7 +81,9 @@ function LineItem({ ) : ( {variant && } - {value !== "FREE" && } + {value !== "FREE" && ( + + )} {value} )} diff --git a/packages/keychain/src/components/connect/SessionConsent.tsx b/packages/keychain/src/components/connect/SessionConsent.tsx index 606f5301e..0a42656f4 100644 --- a/packages/keychain/src/components/connect/SessionConsent.tsx +++ b/packages/keychain/src/components/connect/SessionConsent.tsx @@ -42,7 +42,7 @@ export function SessionConsent({ )} Authorize{" "} - {/* */} + {/* */} {origin} {" "} diff --git a/packages/keychain/src/components/session/ContractCard.tsx b/packages/keychain/src/components/session/ContractCard.tsx index be698621e..d4afebd27 100644 --- a/packages/keychain/src/components/session/ContractCard.tsx +++ b/packages/keychain/src/components/session/ContractCard.tsx @@ -123,7 +123,7 @@ export function ContractCard({ ); } -export function humanizeString(str: string): string { +function humanizeString(str: string): string { return ( str // Convert from camelCase or snake_case diff --git a/packages/ui-next/src/components/network.tsx b/packages/ui-next/src/components/network.tsx index 6ad5cec0f..5002e8f92 100644 --- a/packages/ui-next/src/components/network.tsx +++ b/packages/ui-next/src/components/network.tsx @@ -36,14 +36,14 @@ export function Network({ chainId }: { chainId: string }) { {(() => { switch (chainId) { case constants.StarknetChainId.SN_MAIN: - return ; + return ; case constants.StarknetChainId.SN_SEPOLIA: - return ; + return ; default: return isSlotChain(chainId) ? ( - + ) : ( - + ); } })()}