diff --git a/src/plugins/statusPresets/index.tsx b/src/plugins/statusPresets/index.tsx
index edb830661..4dfcaaf73 100644
--- a/src/plugins/statusPresets/index.tsx
+++ b/src/plugins/statusPresets/index.tsx
@@ -54,15 +54,15 @@ const EmojiComponent = findComponentByCodeLazy(".translateSurrogatesToInlineEmoj
const customStatusSettings = getUserSettingLazy("status", "customStatus");
-const ClearStatusButton = () => customStatusSettings?.updateSetting(null)}>;
+const ClearStatusButton = () => { e.stopPropagation(); customStatusSettings?.updateSetting(null); }}>;
function StatusIcon({ isHovering, status }: { isHovering: boolean; status: DiscordStatus; }) {
return
{isHovering ?
-
+
: (status.emojiInfo != null ?
:
)}
;
}
-const RenderStatusMenuItem = ({ status, forceRerender }: { status: DiscordStatus; forceRerender: ()=>void}) => {
+const RenderStatusMenuItem = ({ status, forceRerender }: { status: DiscordStatus; forceRerender: () => void; }) => {
const [isHovering, setIsHovering] = useState(false);
const handleMouseOver = () => {
setIsHovering(true);
@@ -80,7 +80,8 @@ const RenderStatusMenuItem = ({ status, forceRerender }: { status: DiscordStatus
onMouseOver={handleMouseOver}
onMouseOut={handleMouseOut}>
{
+ onClick={e => {
+ e.stopPropagation();
delete settings.store.StatusPresets[status.text];
forceRerender();
Toasts.show({
@@ -157,7 +158,7 @@ export default definePlugin({
look={Button.Looks.LINK}
color={Button.Colors.WHITE}
size={Button.Sizes.MEDIUM}
- onClick={() => {
+ onClick={e => {
settings.store.StatusPresets[statue.text] = statue;
Toasts.show({
message: "Successfully Saved Status",
diff --git a/src/webpack/common/types/components.d.ts b/src/webpack/common/types/components.d.ts
index 260a763a7..2f933046a 100644
--- a/src/webpack/common/types/components.d.ts
+++ b/src/webpack/common/types/components.d.ts
@@ -477,7 +477,7 @@ export type Clickable = ComponentType): void;
onKeyPress?(): void;
}>>;