diff --git a/.vscode/settings.json b/.vscode/settings.json index 9a298a16..9dc2b32e 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -73,6 +73,7 @@ "wagmi", "webp", "xylabs", + "Xyos", "yarnpkg" ] } diff --git a/packages/button/src/components/ButtonExTo.tsx b/packages/button/src/components/ButtonExTo.tsx index 0e9f8e29..7b3e8ab5 100644 --- a/packages/button/src/components/ButtonExTo.tsx +++ b/packages/button/src/components/ButtonExTo.tsx @@ -12,7 +12,7 @@ const ButtonToEx = forwardRef(({ const localOnClick = (event: MouseEvent) => { onClick?.(event) if (to) { - navigate(to, toOptions) + void navigate(to, toOptions) } } diff --git a/packages/common/src/components/RedirectWithQuery.tsx b/packages/common/src/components/RedirectWithQuery.tsx index 0f60b2a3..667458b9 100644 --- a/packages/common/src/components/RedirectWithQuery.tsx +++ b/packages/common/src/components/RedirectWithQuery.tsx @@ -20,7 +20,7 @@ export const RedirectWithQuery: React.ComponentType = ({ globalThis.location.href = href } else { if (newPath !== pathname) { - navigate(newPath, { replace: true, ...toOptions }) + void navigate(newPath, { replace: true, ...toOptions }) } } }) diff --git a/packages/crypto/src/hooks/useNavigateToEthAddress.ts b/packages/crypto/src/hooks/useNavigateToEthAddress.ts index ad56bd74..691ff8bc 100644 --- a/packages/crypto/src/hooks/useNavigateToEthAddress.ts +++ b/packages/crypto/src/hooks/useNavigateToEthAddress.ts @@ -20,7 +20,7 @@ export const useNavigateToEthAddress = () => { if (event.metaKey || toEtherScan) { window.open(path, '_blank') } else { - navigate(to ?? path, toOptions) + void navigate(to ?? path, toOptions) } } } diff --git a/packages/crypto/src/wallets/components/Discovery/Paper.stories.tsx b/packages/crypto/src/wallets/components/Discovery/Paper.stories.tsx index 7e447ad0..6f12f018 100644 --- a/packages/crypto/src/wallets/components/Discovery/Paper.stories.tsx +++ b/packages/crypto/src/wallets/components/Discovery/Paper.stories.tsx @@ -52,9 +52,7 @@ const Template: StoryFn = (args: WalletDiscoveryPaper setEvent(event.detail) } - // eslint-disable-next-line @eslint-react/web-api/no-leaked-event-listener globalThis.addEventListener(AccountsChangedEventName, accountChangedListener) - // eslint-disable-next-line @eslint-react/web-api/no-leaked-event-listener globalThis.addEventListener(ChainChangedEventName, chainChangedListener) return () => { diff --git a/packages/hooks/src/useUniversalRedirect.ts b/packages/hooks/src/useUniversalRedirect.ts index 680456aa..9a4eca54 100644 --- a/packages/hooks/src/useUniversalRedirect.ts +++ b/packages/hooks/src/useUniversalRedirect.ts @@ -17,7 +17,7 @@ export const useCheckUniversalRedirect = (name: string = DEFAULT_NAME) => { const pendingTo = localStorage.getItem(name) if (pendingTo !== null) { localStorage.removeItem(name) - navigate(pendingTo) + void navigate(pendingTo) } }, [navigate]) } diff --git a/packages/link/src/LinkToEx.tsx b/packages/link/src/LinkToEx.tsx index 821087ba..dc200169 100644 --- a/packages/link/src/LinkToEx.tsx +++ b/packages/link/src/LinkToEx.tsx @@ -28,7 +28,7 @@ export const LinkToEx = forwardRef(({ console.error('onClick threw', elementName, funnel, placement, ex) } if (to && toOptions) { - navigate(to, toOptions) + void navigate(to, toOptions) } } userEvents.userClick({ diff --git a/packages/theme/src/product-theme/xyos/theme.ts b/packages/theme/src/product-theme/xyos/theme.ts index f5848209..66095cae 100644 --- a/packages/theme/src/product-theme/xyos/theme.ts +++ b/packages/theme/src/product-theme/xyos/theme.ts @@ -5,7 +5,7 @@ import { shapeFragment, spacingFragment } from '../../theme-fragments/index.ts' import { darkThemeOptions } from './darkThemeOptions.tsx' import { lightThemeOptions } from './lightThemeOptions.tsx' -export const XyosTheme = (theme: Theme): Theme => createTheme({ +export const XyosTheme = (): Theme => createTheme({ colorSchemes: { dark: darkThemeOptions, light: lightThemeOptions,