From 4bd812ae11e94787cdf2d2e59fa01682cba82513 Mon Sep 17 00:00:00 2001 From: Oleh Polisan Date: Wed, 25 Dec 2024 13:40:25 +0200 Subject: [PATCH] fix: finding color picker component --- src/renderer/components/settings/TraySettings.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/renderer/components/settings/TraySettings.tsx b/src/renderer/components/settings/TraySettings.tsx index c39a49e..ea95b62 100644 --- a/src/renderer/components/settings/TraySettings.tsx +++ b/src/renderer/components/settings/TraySettings.tsx @@ -7,14 +7,17 @@ import "./traySetting.css"; import { Margins, Modals, ModalSize, openModal } from "@vencord/types/utils"; -import { findByCodeLazy, findByPropsLazy } from "@vencord/types/webpack"; +import { findByPropsLazy, findComponentByCodeLazy } from "@vencord/types/webpack"; import { Button, Forms, Select, Switch, Toasts } from "@vencord/types/webpack/common"; import { setCurrentTrayIcon } from "renderer/patches/tray"; import { useSettings } from "renderer/settings"; import { SettingsComponent } from "./Settings"; -const ColorPicker = findByCodeLazy(".Messages.USER_SETTINGS_PROFILE_COLOR_SELECT_COLOR", ".BACKGROUND_PRIMARY)"); +const ColorPicker = findComponentByCodeLazy( + "#{intl::USER_SETTINGS_PROFILE_COLOR_SELECT_COLOR}", + ".BACKGROUND_PRIMARY)" +); const { PencilIcon } = findByPropsLazy("PencilIcon"); const presets = [