Skip to content

Commit

Permalink
Replace chakra icon props with tw classes
Browse files Browse the repository at this point in the history
  • Loading branch information
JunichiSugiura committed Dec 20, 2024
1 parent 3106e80 commit 250c703
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 12 deletions.
4 changes: 2 additions & 2 deletions packages/keychain/src/components/DeployController.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export function DeployController({
return (
<Container
variant="expanded"
icon={<WandIcon fontSize="5xl" variant="line" />}
icon={<WandIcon variant="line" size="lg" />}
title="Deploy Controller"
description="This will initialize your controller on the new network"
>
Expand Down Expand Up @@ -199,7 +199,7 @@ export function DeployController({
return (
<Container
variant="expanded"
icon={<CheckIcon fontSize="5xl" />}
icon={<CheckIcon size="lg" />}
title="Success!"
description={`Your controller has been deployed on ${chainName}`}
>
Expand Down
4 changes: 2 additions & 2 deletions packages/keychain/src/components/ErrorAlert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ export function ErrorAlert({
aria-label="Copy stacktrace"
icon={
copied ? (
<CheckIcon fontSize="xs" color="black" />
<CheckIcon size="xs" className="text-[black]" />
) : (
<CopyIcon fontSize="xs" color="black" />
<CopyIcon size="xs" className="text-[black]" />
)
}
onClick={() => {
Expand Down
2 changes: 1 addition & 1 deletion packages/keychain/src/components/ErrorBoundary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export function ErrorPage({ error }: { error: Error }) {
<Link href={CARTRIDGE_DISCORD_LINK} isExternal>
<HStack>
<Text fontSize="sm">Cartridge Discord</Text>
<ExternalIcon fontSize="xl" />
<ExternalIcon size="lg" />
</HStack>
</Link>
</HStack>
Expand Down
4 changes: 3 additions & 1 deletion packages/keychain/src/components/Fees.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ function LineItem({
) : (
<HStack gap={0}>
{variant && <ErrorAlertIcon variant={variant} />}
{value !== "FREE" && <EthereumIcon color="text.primary" />}
{value !== "FREE" && (
<EthereumIcon className="text-secondary-foreground" />
)}
<Text fontSize={13}>{value}</Text>
</HStack>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function SessionConsent({
)}
<Text color="text.secondary" fontSize="xs" fontWeight="bold">
Authorize{" "}
{/* <LockIcon fontSize="md" color="text.secondaryAccent" mr={0.5} /> */}
{/* <LockIcon className="text-accent-foreground mr-0.5" /> */}
<Text as="span" color="text.secondaryAccent" fontWeight="bold">
{origin}
</Text>{" "}
Expand Down
2 changes: 1 addition & 1 deletion packages/keychain/src/components/session/ContractCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions packages/ui-next/src/components/network.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ export function Network({ chainId }: { chainId: string }) {
{(() => {
switch (chainId) {
case constants.StarknetChainId.SN_MAIN:
return <StarknetColorIcon fontSize="xl" />;
return <StarknetColorIcon size="lg" />;
case constants.StarknetChainId.SN_SEPOLIA:
return <StarknetIcon fontSize="xl" />;
return <StarknetIcon size="lg" />;
default:
return isSlotChain(chainId) ? (
<SlotIcon fontSize="xl" />
<SlotIcon size="lg" />
) : (
<QuestionIcon fontSize="xl" />
<QuestionIcon size="lg" />
);
}
})()}
Expand Down

0 comments on commit 250c703

Please sign in to comment.