From 2359fa99d6641a956c0dc928e1dfb9113d1659aa Mon Sep 17 00:00:00 2001 From: Izumi Hoshino Date: Sun, 27 Oct 2024 01:00:25 +0900 Subject: [PATCH] Fixed prettier errors --- .../WalletConnectRequestPermissionsConfirmDialog.tsx | 4 ++-- packages/gui/src/hooks/useWalletConnectCommand.tsx | 6 +++--- packages/gui/src/hooks/useWalletConnectPairs.ts | 10 +++++----- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/gui/src/components/walletConnect/WalletConnectRequestPermissionsConfirmDialog.tsx b/packages/gui/src/components/walletConnect/WalletConnectRequestPermissionsConfirmDialog.tsx index ede4ec659b..9d66892a98 100644 --- a/packages/gui/src/components/walletConnect/WalletConnectRequestPermissionsConfirmDialog.tsx +++ b/packages/gui/src/components/walletConnect/WalletConnectRequestPermissionsConfirmDialog.tsx @@ -22,7 +22,7 @@ export type WalletConnectRequestPermissionsConfirmDialogProps = { }; export default function WalletConnectRequestPermissionsConfirmDialog( - props: WalletConnectRequestPermissionsConfirmDialogProps + props: WalletConnectRequestPermissionsConfirmDialogProps, ) { const { topic, @@ -91,7 +91,7 @@ export default function WalletConnectRequestPermissionsConfirmDialog( {displayComponent ? displayComponent(value, params, values, handleChangeValues) - : value?.toString() ?? Not Available} + : (value?.toString() ?? Not Available)} ); diff --git a/packages/gui/src/hooks/useWalletConnectCommand.tsx b/packages/gui/src/hooks/useWalletConnectCommand.tsx index 348d19217c..aa925512ad 100644 --- a/packages/gui/src/hooks/useWalletConnectCommand.tsx +++ b/packages/gui/src/hooks/useWalletConnectCommand.tsx @@ -26,7 +26,7 @@ type UseWalletConnectCommandOptions = { function parseNotification( fingerprint: number, values: Record, - pair: Pair + pair: Pair, ): Notification { const { type, allFingerprints, offerData } = values; @@ -133,7 +133,7 @@ export default function useWalletConnectCommand(options: UseWalletConnectCommand params={params} values={values} onChange={onChange} - /> + />, ); return isConfirmed; } @@ -149,7 +149,7 @@ export default function useWalletConnectCommand(options: UseWalletConnectCommand params={params} values={values} onChange={onChange} - /> + />, ); return isConfirmed; } diff --git a/packages/gui/src/hooks/useWalletConnectPairs.ts b/packages/gui/src/hooks/useWalletConnectPairs.ts index e95a98b048..e5cdb18deb 100644 --- a/packages/gui/src/hooks/useWalletConnectPairs.ts +++ b/packages/gui/src/hooks/useWalletConnectPairs.ts @@ -58,7 +58,7 @@ export default function useWalletConnectPairs(): Pairs { const removePairBySession = useCallback((sessionTopic: string) => { const [, setPairs] = pairsRef.current; setPairs((pairs: Pair[]) => - pairs.filter((item) => !item.sessions.find((session) => session.topic === sessionTopic)) + pairs.filter((item) => !item.sessions.find((session) => session.topic === sessionTopic)), ); }, []); @@ -95,7 +95,7 @@ export default function useWalletConnectPairs(): Pairs { pairs.map((pair) => ({ ...pair, sessions: pair.sessions.filter((item) => item.topic !== sessionTopic), - })) + })), ); }, []); @@ -174,7 +174,7 @@ export default function useWalletConnectPairs(): Pairs { pairs.map((item) => ({ ...item, bypassCommands: {}, - })) + })), ); }, []); @@ -188,7 +188,7 @@ export default function useWalletConnectPairs(): Pairs { item.topic === pairTopic ? {} // reset bypass commands : item.bypassCommands, - })) + })), ); }, []); @@ -229,7 +229,7 @@ export default function useWalletConnectPairs(): Pairs { resetBypassForAllPairs, resetBypassForPair, currentPairs, - ] + ], ); return pairs;