diff options
author | Vendicated <vendicated@riseup.net> | 2022-11-06 18:37:01 +0100 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2022-11-06 18:37:01 +0100 |
commit | 963a7332b4daa183ec2d8d3ddf10f3f73b01746a (patch) | |
tree | 6eaecd2af5bc67222eb9748c7bf948fbf3c17a1a /src/webpack/common.tsx | |
parent | 440baf6028be926929497c14e9ab4610cddd255d (diff) | |
download | Vencord-963a7332b4daa183ec2d8d3ddf10f3f73b01746a.tar.gz Vencord-963a7332b4daa183ec2d8d3ddf10f3f73b01746a.tar.bz2 Vencord-963a7332b4daa183ec2d8d3ddf10f3f73b01746a.zip |
Migrate proxied components to and fix LazyComponent
Diffstat (limited to 'src/webpack/common.tsx')
-rw-r--r-- | src/webpack/common.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/webpack/common.tsx b/src/webpack/common.tsx index 77d339c..99f94f3 100644 --- a/src/webpack/common.tsx +++ b/src/webpack/common.tsx @@ -21,8 +21,8 @@ import { User } from "discord-types/general"; import type Other from "discord-types/other"; import type Stores from "discord-types/stores"; -import { lazyWebpack } from "../utils/misc"; -import { _resolveReady, filters, mapMangledModuleLazy, waitFor } from "./webpack"; +import { LazyComponent, lazyWebpack } from "../utils/misc"; +import { _resolveReady, filters, findByCode, mapMangledModuleLazy, waitFor } from "./webpack"; export const Margins = lazyWebpack(filters.byProps("marginTop20")); export let FluxDispatcher: Other.FluxDispatcher; @@ -48,8 +48,8 @@ export let Router: any; export let TextInput: any; export let Text: (props: TextProps) => JSX.Element; -export const Select = lazyWebpack(filters.byCode("optionClassName", "popoutPosition", "autoFocus", "maxVisibleItems")); -export const Slider = lazyWebpack(filters.byCode("closestMarkerIndex", "stickToMarkers")); +export const Select = LazyComponent(() => findByCode("optionClassName", "popoutPosition", "autoFocus", "maxVisibleItems")); +export const Slider = LazyComponent(() => findByCode("closestMarkerIndex", "stickToMarkers")); export let Parser: any; export let Alerts: { |