diff --git a/src/equicordplugins/fakeProfileThemesAndEffects/components/BuilderButton.tsx b/src/equicordplugins/fakeProfileThemesAndEffects/components/BuilderButton.tsx index 9da8049b..d9aada06 100644 --- a/src/equicordplugins/fakeProfileThemesAndEffects/components/BuilderButton.tsx +++ b/src/equicordplugins/fakeProfileThemesAndEffects/components/BuilderButton.tsx @@ -7,6 +7,8 @@ import { Text, Tooltip } from "@webpack/common"; import type { ComponentProps } from "react"; +import { buttonRef } from "./BuilderColorButton"; + export interface BuilderButtonProps { label?: string | undefined; tooltip?: string | undefined; @@ -32,6 +34,7 @@ export const BuilderButton = ({ label, tooltip, selectedStyle, buttonProps }: Bu borderRadius: "4px", cursor: "pointer" }} + ref={buttonRef} > {!selectedStyle && ( void; } +export const buttonRef = useRef(null); + export const BuilderColorButton = ({ label, color, setColor, suggestedColors }: BuilderColorButtonProps) => ( ( {props => (