diff --git a/packages/fcl-wc/jest.config.js b/packages/fcl-wc/jest.config.js index 84641dc5f..706d02824 100644 --- a/packages/fcl-wc/jest.config.js +++ b/packages/fcl-wc/jest.config.js @@ -1,9 +1,10 @@ const config = { - preset: 'jest-preset-preact', - "moduleNameMapper": { - "\\.(jpg|ico|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "/src/mocks/file-mock.ts", - "\\.(css|less)$": "/src/mocks/file-mock.ts" - }, -}; + preset: "jest-preset-preact", + moduleNameMapper: { + "\\.(jpg|ico|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": + "/src/mocks/file-mock.ts", + "\\.(css|less)$": "/src/mocks/file-mock.ts", + }, +} -module.exports = config; \ No newline at end of file +module.exports = config diff --git a/packages/fcl-wc/src/fcl-wc.ts b/packages/fcl-wc/src/fcl-wc.ts index de8cee147..084e2b220 100644 --- a/packages/fcl-wc/src/fcl-wc.ts +++ b/packages/fcl-wc/src/fcl-wc.ts @@ -88,7 +88,10 @@ const initHelper = (config: FclWalletConnectConfig) => { if (_client) { return _client } else { - return initClient({projectId: config.projectId, metadata: config.metadata}) + return initClient({ + projectId: config.projectId, + metadata: config.metadata, + }) } }) .catch(e => { diff --git a/packages/fcl-wc/src/mocks/file-mock.ts b/packages/fcl-wc/src/mocks/file-mock.ts index f114d9ea2..b74529a9f 100644 --- a/packages/fcl-wc/src/mocks/file-mock.ts +++ b/packages/fcl-wc/src/mocks/file-mock.ts @@ -1 +1 @@ -export default 'mocked-file' \ No newline at end of file +export default "mocked-file" diff --git a/packages/fcl-wc/src/service.ts b/packages/fcl-wc/src/service.ts index 0ae6c33d9..aec034aa6 100644 --- a/packages/fcl-wc/src/service.ts +++ b/packages/fcl-wc/src/service.ts @@ -10,7 +10,7 @@ import {SignClient} from "@walletconnect/sign-client/dist/types/client" import {createSessionProposal, request} from "./session" import {ModalCtrlState} from "@walletconnect/modal-core/dist/_types/src/types/controllerTypes" import {showWcRequestNotification} from "./ui/notifications" -import type { FclWalletConnectConfig } from "./fcl-wc" +import type {FclWalletConnectConfig} from "./fcl-wc" type WalletConnectModalType = import("@walletconnect/modal").WalletConnectModal diff --git a/packages/fcl-wc/src/ui/components/Notification.tsx b/packages/fcl-wc/src/ui/components/Notification.tsx index 43c050fbe..3bd0f86b1 100644 --- a/packages/fcl-wc/src/ui/components/Notification.tsx +++ b/packages/fcl-wc/src/ui/components/Notification.tsx @@ -1,5 +1,5 @@ import {NotificationInfo} from "../../types/types" -import { isMobile } from "../../utils" +import {isMobile} from "../../utils" export function Notification({ title, @@ -10,9 +10,10 @@ export function Notification({ }: NotificationInfo) { return (
{ if (onClick) { @@ -38,12 +39,11 @@ export function Notification({