mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-18 13:23:28 -05:00
Updates
This commit is contained in:
parent
89dd089eeb
commit
ab7547e698
2 changed files with 9 additions and 3 deletions
|
@ -27,6 +27,7 @@ import { openPluginModal } from "@components/PluginSettings/PluginModal";
|
|||
import { AddonCard } from "@components/VencordSettings/AddonCard";
|
||||
import { QuickAction, QuickActionCard } from "@components/VencordSettings/quickActions";
|
||||
import { SettingsTab, wrapTab } from "@components/VencordSettings/shared";
|
||||
import { isPluginEnabled } from "@plugins";
|
||||
import { openInviteModal } from "@utils/discord";
|
||||
import { openModal } from "@utils/modal";
|
||||
import { showItemInFolder } from "@utils/native";
|
||||
|
@ -39,6 +40,8 @@ import { Button, Card, Forms, React, showToast, TabBar, TextInput, Tooltip, useE
|
|||
import type { ComponentType, Ref, SyntheticEvent } from "react";
|
||||
import type { UserstyleHeader } from "usercss-meta";
|
||||
|
||||
import Plugins from "~plugins";
|
||||
|
||||
import { UserCSSSettingsModal } from "./UserCSSModal";
|
||||
|
||||
type FileInput = ComponentType<{
|
||||
|
@ -96,7 +99,7 @@ interface UserCSSCardProps {
|
|||
|
||||
function UserCSSThemeCard({ theme, enabled, onChange, onDelete, onSettingsReset }: UserCSSCardProps) {
|
||||
const missingPlugins = useMemo(() =>
|
||||
theme.requiredPlugins?.filter(p => !Vencord.Plugins.isPluginEnabled(p)), [theme]);
|
||||
theme.requiredPlugins?.filter(p => !isPluginEnabled(p)), [theme]);
|
||||
|
||||
return (
|
||||
<AddonCard
|
||||
|
@ -343,10 +346,10 @@ function ThemesTab() {
|
|||
Icon={PaintbrushIcon}
|
||||
/>
|
||||
|
||||
{Vencord.Settings.plugins.ClientTheme.enabled && (
|
||||
{Settings.plugins.ClientTheme.enabled && (
|
||||
<QuickAction
|
||||
text="Edit ClientTheme"
|
||||
action={() => openPluginModal(Vencord.Plugins.plugins.ClientTheme)}
|
||||
action={() => openPluginModal(Plugins.ClientTheme)}
|
||||
Icon={PencilIcon}
|
||||
/>
|
||||
)}
|
||||
|
|
|
@ -43,6 +43,9 @@
|
|||
],
|
||||
"@webpack": [
|
||||
"./webpack/webpack"
|
||||
],
|
||||
"@plugins": [
|
||||
"./plugins"
|
||||
]
|
||||
},
|
||||
"plugins": [
|
||||
|
|
Loading…
Reference in a new issue