From cf7efaa657726d3a6d2220920dd5ce98695356b4 Mon Sep 17 00:00:00 2001 From: Deepak Jose Date: Wed, 6 Dec 2023 16:50:04 +0530 Subject: [PATCH] #12 - Fixed the import order issue of mousetrap lib. --- src/index.js | 1 - src/utils.js | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 4ad0d49..f346318 100644 --- a/src/index.js +++ b/src/index.js @@ -1,6 +1,5 @@ import { useEffect, useRef } from "react"; -import "mousetrap-global-bind"; import { mergeLeft } from "ramda"; import { DEFAULT_CONFIG, MODES } from "src/constants"; import { diff --git a/src/utils.js b/src/utils.js index 54deac6..efbc288 100644 --- a/src/utils.js +++ b/src/utils.js @@ -1,4 +1,5 @@ import Mousetrap from "mousetrap"; +import "mousetrap-global-bind"; import platform from "platform"; import { toPairs } from "ramda";