NewPluginsManager: Im sorry Sqaa

This commit is contained in:
thororen1234 2026-07-09 16:20:56 -04:00
parent 5f4210e7b9
commit 69418f8dd8
No known key found for this signature in database

View file

@ -9,13 +9,14 @@ import "./styles.css";
import { Settings, useSettings } from "@api/Settings";
import { BaseText } from "@components/BaseText";
import ErrorBoundary from "@components/ErrorBoundary";
import { Link } from "@components/Link";
import { Notice } from "@components/Notice";
import { PluginDependencyList } from "@components/settings/tabs/plugins";
import { PluginCard } from "@components/settings/tabs/plugins/PluginCard";
import { ChangeList } from "@utils/ChangeList";
import { classNameFactory } from "@utils/css";
import { useForceUpdater } from "@utils/react";
import { RenderModalProps } from "@vencord/discord-types";
import { findComponentByCodeLazy } from "@webpack";
import { closeModal, Modal, openModal, Tooltip, useMemo } from "@webpack/common";
import { ReactNode } from "react";
@ -25,8 +26,6 @@ import { getNewPlugins, getNewSettings, KnownPluginSettingsMap, writeKnownSettin
const cl = classNameFactory("vc-new-plugins-");
const Checkbox = findComponentByCodeLazy('"data-toggleable-component":"checkbox');
let hasSeen = false;
interface ModalComponentProps {
@ -127,10 +126,18 @@ function NewPluginsModal({ modalProps, newPlugins, newSettings }: ModalComponent
<BaseText size="lg" weight="semibold" className={cl("title")}>
New Plugins and Settings ({totalCount})
</BaseText>
</div>
}
subtitle={
<>
<BaseText size="sm" className={cl("description")}>
New plugins have been added since your last visit. Enable any you'd like or continue to dismiss.
</BaseText>
</div>
<br />
<Notice.Info className={cl("notice")}>
Equicord is Open Source Software. If you enjoy using it, consider supporting the us <Link href="https://github.com/sponsors/thororen1234" target="_blank" rel="noopener noreferrer">here</Link>.
</Notice.Info>
</>
}
actions={[
{
@ -151,7 +158,7 @@ function NewPluginsModal({ modalProps, newPlugins, newSettings }: ModalComponent
{pluginCards}
{requiredPluginCards}
</div>
</Modal>
</Modal >
);
}