feat: Add Decor plugin (#910)

This commit is contained in:
Jack 2023-11-30 00:10:50 -05:00 committed by GitHub
parent 8ef1882d43
commit b47a5f569e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
29 changed files with 1493 additions and 14 deletions

View file

@ -19,8 +19,7 @@
import * as DataStore from "@api/DataStore";
import { showNotification } from "@api/Notifications";
import { Settings } from "@api/Settings";
import { findByProps } from "@webpack";
import { UserStore } from "@webpack/common";
import { OAuth2AuthorizeModal, UserStore } from "@webpack/common";
import { Logger } from "./Logger";
import { openModal } from "./modal";
@ -91,8 +90,6 @@ export async function authorizeCloud() {
return;
}
const { OAuth2AuthorizeModal } = findByProps("OAuth2AuthorizeModal");
openModal((props: any) => <OAuth2AuthorizeModal
{...props}
scopes={["identify"]}