aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/shikiCodeblocks
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2023-05-06 01:36:00 +0200
committerVendicated <vendicated@riseup.net>2023-05-06 01:36:00 +0200
commit0d5e2d0696da494aee2126b4cadbca7e07066b89 (patch)
tree4a8159ba43f5f283e28101eb3d92e1f4f0b52035 /src/plugins/shikiCodeblocks
parent2834bed518a1fc1c384a93d599cc1b03555177c7 (diff)
downloadVencord-0d5e2d0696da494aee2126b4cadbca7e07066b89.tar.gz
Vencord-0d5e2d0696da494aee2126b4cadbca7e07066b89.tar.bz2
Vencord-0d5e2d0696da494aee2126b4cadbca7e07066b89.zip
[skip ci] Refactor utils
Diffstat (limited to 'src/plugins/shikiCodeblocks')
-rw-r--r--src/plugins/shikiCodeblocks/components/Highlighter.tsx3
-rw-r--r--src/plugins/shikiCodeblocks/settings.ts2
2 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/shikiCodeblocks/components/Highlighter.tsx b/src/plugins/shikiCodeblocks/components/Highlighter.tsx
index badb3c8..dd14019 100644
--- a/src/plugins/shikiCodeblocks/components/Highlighter.tsx
+++ b/src/plugins/shikiCodeblocks/components/Highlighter.tsx
@@ -17,8 +17,7 @@
*/
import ErrorBoundary from "@components/ErrorBoundary";
-import { useAwaiter } from "@utils/misc";
-import { useIntersection } from "@utils/react";
+import { useAwaiter, useIntersection } from "@utils/react";
import { hljs, React } from "@webpack/common";
import { resolveLang } from "../api/languages";
diff --git a/src/plugins/shikiCodeblocks/settings.ts b/src/plugins/shikiCodeblocks/settings.ts
index ff5afc2..f9fd3cc 100644
--- a/src/plugins/shikiCodeblocks/settings.ts
+++ b/src/plugins/shikiCodeblocks/settings.ts
@@ -16,7 +16,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-import { definePluginSettings } from "@api/settings";
+import { definePluginSettings } from "@api/Settings";
import { disableStyle, enableStyle } from "@api/Styles";
import { parseUrl } from "@utils/misc";
import { wordsFromPascal, wordsToTitle } from "@utils/text";