mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-18 13:23:28 -05:00
Fix
This commit is contained in:
parent
77ee8e7bc3
commit
3333661fdb
1 changed files with 1 additions and 9 deletions
|
@ -7,7 +7,6 @@
|
||||||
import { definePluginSettings } from "@api/Settings";
|
import { definePluginSettings } from "@api/Settings";
|
||||||
import { EquicordDevs } from "@utils/constants";
|
import { EquicordDevs } from "@utils/constants";
|
||||||
import definePlugin, { OptionType } from "@utils/types";
|
import definePlugin, { OptionType } from "@utils/types";
|
||||||
import { findByProps } from "@webpack";
|
|
||||||
import { Button, Forms, i18n, Menu, TabBar } from "@webpack/common";
|
import { Button, Forms, i18n, Menu, TabBar } from "@webpack/common";
|
||||||
import { ReactElement } from "react";
|
import { ReactElement } from "react";
|
||||||
|
|
||||||
|
@ -17,8 +16,7 @@ import openQrModal from "./ui/modals/QrModal";
|
||||||
|
|
||||||
export default definePlugin({
|
export default definePlugin({
|
||||||
name: "LoginWithQR",
|
name: "LoginWithQR",
|
||||||
description:
|
description: "Allows you to login to another device by scanning a login QR code, just like on mobile!",
|
||||||
"Allows you to login to another device by scanning a login QR code, just like on mobile!",
|
|
||||||
authors: [EquicordDevs.nexpid],
|
authors: [EquicordDevs.nexpid],
|
||||||
|
|
||||||
settings: definePluginSettings({
|
settings: definePluginSettings({
|
||||||
|
@ -97,10 +95,6 @@ export default definePlugin({
|
||||||
),
|
),
|
||||||
|
|
||||||
get ScanQrMenuItem() {
|
get ScanQrMenuItem() {
|
||||||
const { menuItemFocused, subMenuIcon } = findByProps(
|
|
||||||
"menuItemFocused"
|
|
||||||
) as Record<string, string>;
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Menu.MenuGroup>
|
<Menu.MenuGroup>
|
||||||
<Menu.MenuItem
|
<Menu.MenuItem
|
||||||
|
@ -109,8 +103,6 @@ export default definePlugin({
|
||||||
icon={QrCodeIcon}
|
icon={QrCodeIcon}
|
||||||
action={openQrModal}
|
action={openQrModal}
|
||||||
showIconFirst
|
showIconFirst
|
||||||
focusedClassName={menuItemFocused}
|
|
||||||
subMenuIconClassName={subMenuIcon}
|
|
||||||
/>
|
/>
|
||||||
</Menu.MenuGroup>
|
</Menu.MenuGroup>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue