From 02ef0142e3125afccec324cd483d71ac1c385ddb Mon Sep 17 00:00:00 2001 From: broody Date: Wed, 31 Jul 2024 07:27:53 -1000 Subject: [PATCH] pnpm format --- .../src/components/DeploymentRequired.tsx | 8 +++- .../src/components/connect/CreateSession.tsx | 13 +++-- packages/keychain/src/hooks/deploy.ts | 35 +++++++------- .../keychain/src/pages/slot/session/index.tsx | 7 +-- .../src/components/primitives/command.tsx | 2 +- .../components/primitives/toggle-group.tsx | 4 +- packages/ui-next/src/themes/dark.css | 46 +++++++++--------- packages/ui-next/src/themes/default.css | 48 +++++++++---------- 8 files changed, 85 insertions(+), 78 deletions(-) diff --git a/packages/keychain/src/components/DeploymentRequired.tsx b/packages/keychain/src/components/DeploymentRequired.tsx index 3f17f8d71..d09cf60be 100644 --- a/packages/keychain/src/components/DeploymentRequired.tsx +++ b/packages/keychain/src/components/DeploymentRequired.tsx @@ -45,7 +45,13 @@ export function DeploymentRequired({ setDeployHash(hash); }) .catch((e) => setError(e)); - }, [account.chainId, account.username, hasPrefundRequest, isDeployed, deployRequest]); + }, [ + account.chainId, + account.username, + hasPrefundRequest, + isDeployed, + deployRequest, + ]); if (isDeployed) { return <>{children}; diff --git a/packages/keychain/src/components/connect/CreateSession.tsx b/packages/keychain/src/components/connect/CreateSession.tsx index f81b12216..3c7d2e036 100644 --- a/packages/keychain/src/components/connect/CreateSession.tsx +++ b/packages/keychain/src/components/connect/CreateSession.tsx @@ -26,9 +26,9 @@ export function CreateSession({ await controller.approve(origin, expiresAt, policies, maxFees); onConnect(policies); } catch (e) { - setError(e) - setIsConnecting(false) - } + setError(e); + setIsConnecting(false); + } }, [controller, origin, expiresAt, policies, maxFees, onConnect]); return ( @@ -52,13 +52,16 @@ export function CreateSession({