Skip to content

Commit

Permalink
Fixed prettier errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiaMineJP committed Oct 26, 2024
1 parent 25c1aa6 commit 2359fa9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export type WalletConnectRequestPermissionsConfirmDialogProps = {
};

export default function WalletConnectRequestPermissionsConfirmDialog(
props: WalletConnectRequestPermissionsConfirmDialogProps
props: WalletConnectRequestPermissionsConfirmDialogProps,
) {
const {
topic,
Expand Down Expand Up @@ -91,7 +91,7 @@ export default function WalletConnectRequestPermissionsConfirmDialog(
<Typography color="textSecondary">
{displayComponent
? displayComponent(value, params, values, handleChangeValues)
: value?.toString() ?? <Trans>Not Available</Trans>}
: (value?.toString() ?? <Trans>Not Available</Trans>)}
</Typography>
</Flex>
);
Expand Down
6 changes: 3 additions & 3 deletions packages/gui/src/hooks/useWalletConnectCommand.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type UseWalletConnectCommandOptions = {
function parseNotification(
fingerprint: number,
values: Record<string, string | number | boolean>,
pair: Pair
pair: Pair,
): Notification {
const { type, allFingerprints, offerData } = values;

Expand Down Expand Up @@ -133,7 +133,7 @@ export default function useWalletConnectCommand(options: UseWalletConnectCommand
params={params}
values={values}
onChange={onChange}
/>
/>,
);
return isConfirmed;
}
Expand All @@ -149,7 +149,7 @@ export default function useWalletConnectCommand(options: UseWalletConnectCommand
params={params}
values={values}
onChange={onChange}
/>
/>,
);
return isConfirmed;
}
Expand Down
10 changes: 5 additions & 5 deletions packages/gui/src/hooks/useWalletConnectPairs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
);
}, []);

Expand Down Expand Up @@ -95,7 +95,7 @@ export default function useWalletConnectPairs(): Pairs {
pairs.map((pair) => ({
...pair,
sessions: pair.sessions.filter((item) => item.topic !== sessionTopic),
}))
})),
);
}, []);

Expand Down Expand Up @@ -174,7 +174,7 @@ export default function useWalletConnectPairs(): Pairs {
pairs.map((item) => ({
...item,
bypassCommands: {},
}))
})),
);
}, []);

Expand All @@ -188,7 +188,7 @@ export default function useWalletConnectPairs(): Pairs {
item.topic === pairTopic
? {} // reset bypass commands
: item.bypassCommands,
}))
})),
);
}, []);

Expand Down Expand Up @@ -229,7 +229,7 @@ export default function useWalletConnectPairs(): Pairs {
resetBypassForAllPairs,
resetBypassForPair,
currentPairs,
]
],
);

return pairs;
Expand Down

0 comments on commit 2359fa9

Please sign in to comment.