aboutsummaryrefslogtreecommitdiff
path: root/src/webpack/common
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2023-02-24 05:48:37 +0100
committerVendicated <vendicated@riseup.net>2023-02-24 05:48:37 +0100
commitaf4c7d8a90cb8c943f082922798692af5be8578a (patch)
tree9dcb4c66cea23587442364dcd50322d6c49bfee5 /src/webpack/common
parent77c691651e72ba1569666d560f96af04bfde9a4e (diff)
downloadVencord-af4c7d8a90cb8c943f082922798692af5be8578a.tar.gz
Vencord-af4c7d8a90cb8c943f082922798692af5be8578a.tar.bz2
Vencord-af4c7d8a90cb8c943f082922798692af5be8578a.zip
Fix Cards (they look ugly now, wtf Discord)
Diffstat (limited to 'src/webpack/common')
-rw-r--r--src/webpack/common/components.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/webpack/common/components.ts b/src/webpack/common/components.ts
index 27d103f..0c02971 100644
--- a/src/webpack/common/components.ts
+++ b/src/webpack/common/components.ts
@@ -32,7 +32,7 @@ export const Forms = {
FormText: waitForComponent<t.FormText>("FormText", m => m.Types?.INPUT_PLACEHOLDER),
};
-export const Card = waitForComponent<t.Card>("Card", m => m.Types?.PRIMARY === "cardPrimary");
+export const Card = waitForComponent<t.Card>("Card", m => m.Types?.PRIMARY && m.defaultProps);
export const Button = waitForComponent<t.Button>("Button", ["Hovers", "Looks", "Sizes"]);
export const Switch = waitForComponent<t.Switch>("Switch", filters.byCode("tooltipNote", "ringTarget"));
export const Tooltip = waitForComponent<t.Tooltip>("Tooltip", ["Positions", "Colors"]);