aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/whoReacted.tsx
diff options
context:
space:
mode:
authorVen <vendicated@riseup.net>2022-11-28 13:37:55 +0100
committerGitHub <noreply@github.com>2022-11-28 13:37:55 +0100
commitbad96b78879f296d5b9e7adacb03756b0f58427a (patch)
tree4ddbc57a29e9b201bee1317f18110e8e1ad320e5 /src/plugins/whoReacted.tsx
parent7a4402f1425ea9fdc6d2b3c985a4ce831f405937 (diff)
downloadVencord-bad96b78879f296d5b9e7adacb03756b0f58427a.tar.gz
Vencord-bad96b78879f296d5b9e7adacb03756b0f58427a.tar.bz2
Vencord-bad96b78879f296d5b9e7adacb03756b0f58427a.zip
Path aliases, better lazyWebpack (#268)
Diffstat (limited to 'src/plugins/whoReacted.tsx')
-rw-r--r--src/plugins/whoReacted.tsx19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/plugins/whoReacted.tsx b/src/plugins/whoReacted.tsx
index b1fb27d..685d954 100644
--- a/src/plugins/whoReacted.tsx
+++ b/src/plugins/whoReacted.tsx
@@ -16,20 +16,19 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
+import ErrorBoundary from "@components/ErrorBoundary";
+import { Devs } from "@utils/constants";
+import { LazyComponent, sleep, useForceUpdater } from "@utils/misc";
+import { Queue } from "@utils/Queue";
+import definePlugin from "@utils/types";
+import { findByCode, findByPropsLazy } from "@webpack";
+import { ChannelStore, FluxDispatcher, React, RestAPI, Tooltip } from "@webpack/common";
import { ReactionEmoji, User } from "discord-types/general";
-import ErrorBoundary from "../components/ErrorBoundary";
-import { Devs } from "../utils/constants";
-import { LazyComponent, lazyWebpack, sleep, useForceUpdater } from "../utils/misc";
-import { Queue } from "../utils/Queue";
-import definePlugin from "../utils/types";
-import { filters, findByCode } from "../webpack";
-import { ChannelStore, FluxDispatcher, React, RestAPI, Tooltip } from "../webpack/common";
-
const UserSummaryItem = LazyComponent(() => findByCode("defaultRenderUser", "showDefaultAvatarsForNullUsers"));
-const AvatarStyles = lazyWebpack(filters.byProps("moreUsers", "emptyUser", "avatarContainer", "clickableAvatar"));
+const AvatarStyles = findByPropsLazy("moreUsers", "emptyUser", "avatarContainer", "clickableAvatar");
-const ReactionStore = lazyWebpack(filters.byProps("getReactions"));
+const ReactionStore = findByPropsLazy("getReactions");
const queue = new Queue();