mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-02-23 15:05:11 +00:00
Fix post-mangle
This commit is contained in:
parent
47cb46c220
commit
d89a6d4399
1 changed files with 10 additions and 21 deletions
|
@ -27,22 +27,7 @@ import { classes } from "@utils/misc";
|
|||
import { Queue } from "@utils/Queue";
|
||||
import definePlugin, { OptionType } from "@utils/types";
|
||||
import { findByPropsLazy, findComponentByCodeLazy } from "@webpack";
|
||||
import {
|
||||
Button,
|
||||
ChannelStore,
|
||||
Constants,
|
||||
GuildStore,
|
||||
Icons,
|
||||
IconUtils,
|
||||
MessageStore,
|
||||
Parser,
|
||||
PermissionsBits,
|
||||
PermissionStore,
|
||||
RestAPI,
|
||||
Text,
|
||||
UserStore,
|
||||
useState
|
||||
} from "@webpack/common";
|
||||
import { Button, ChannelStore, Clickable, Constants, GuildStore, IconUtils, MessageStore, Parser, PermissionsBits, PermissionStore, RestAPI, Text, UserStore, useState } from "@webpack/common";
|
||||
import { Channel, Message } from "discord-types/general";
|
||||
import { JSX } from "react";
|
||||
|
||||
|
@ -55,6 +40,10 @@ const Embed = findComponentByCodeLazy(".inlineMediaEmbed");
|
|||
const AutoModEmbed = findComponentByCodeLazy(".withFooter]:", "childrenMessageContent:");
|
||||
const ChannelMessage = findComponentByCodeLazy("childrenExecutedCommand:", ".hideAccessories");
|
||||
|
||||
const ImageWarningIcon = findComponentByCodeLazy("M19.91 14.63a1.06 1.06 0 0 0-1.82");
|
||||
const EyeIcon = findComponentByCodeLazy("M22.89 11.7c.07.2.07.4 0 .6C22.27");
|
||||
const EyeSlashIcon = findComponentByCodeLazy("M8.18 10.81c-.13.43.36.65");
|
||||
|
||||
const SearchResultClasses = findByPropsLazy("message", "searchResult");
|
||||
const EmbedClasses = findByPropsLazy("embedAuthorIcon", "embedAuthor", "embedAuthor");
|
||||
const SpoilerClasses = findByPropsLazy("explicitContentWarning", "explicitContentWarningText", "spoilerContent");
|
||||
|
@ -318,7 +307,7 @@ function Spoiler(props: { children: JSX.Element }) : JSX.Element {
|
|||
>
|
||||
{!visible &&
|
||||
<div className={explicitContentWarning}>
|
||||
<Icons.ImageWarningIcon size="lg" color="white"/>
|
||||
<ImageWarningIcon size="lg" color="white"/>
|
||||
<Text variant="text-sm/normal" color="always-white"
|
||||
className={classes(explicitContentWarningText)}>
|
||||
{getIntlMessage("EXPLICIT_CONTENT_WARNING")}
|
||||
|
@ -332,12 +321,12 @@ function Spoiler(props: { children: JSX.Element }) : JSX.Element {
|
|||
{props.children}
|
||||
</div>
|
||||
<div className={obscureButtonContainer}>
|
||||
<Icons.Clickable onClick={() => setVisible(!visible)}
|
||||
<Clickable onClick={() => setVisible(!visible)}
|
||||
aria-label={getIntlMessage("EXPLICIT_CONTENT_BUTTON_TOOLTIP")}
|
||||
className={obscureHoverButton}>
|
||||
{visible ? <Icons.EyeIcon size="md" color="currentColor"/> :
|
||||
<Icons.EyeSlashIcon size="md" color="currentColor"/>}
|
||||
</Icons.Clickable>
|
||||
{visible ? <EyeIcon size="md" color="currentColor"/> :
|
||||
<EyeSlashIcon size="md" color="currentColor"/>}
|
||||
</Clickable>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue