diff options
author | A user <pedro.santos.cartaxo@gmail.com> | 2023-01-02 22:30:54 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-03 02:30:54 +0100 |
commit | 374531d10e8c12803036867de84edeca10fe2e25 (patch) | |
tree | 61226f670296b3f4eeec0031b4c01164c49822a6 /src/utils/misc.tsx | |
parent | 2e5d27b6b63097e96e25819df7a8cdd667c521b3 (diff) | |
download | Vencord-374531d10e8c12803036867de84edeca10fe2e25.tar.gz Vencord-374531d10e8c12803036867de84edeca10fe2e25.tar.bz2 Vencord-374531d10e8c12803036867de84edeca10fe2e25.zip |
Extract inline styles to css (#370)
Diffstat (limited to 'src/utils/misc.tsx')
-rw-r--r-- | src/utils/misc.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/misc.tsx b/src/utils/misc.tsx index 6710523..0ef7ffb 100644 --- a/src/utils/misc.tsx +++ b/src/utils/misc.tsx @@ -142,7 +142,7 @@ export function humanFriendlyJoin(elements: any[], mapper: (e: any) => string = * classes("one", "two") => "one two" */ export function classes(...classes: string[]) { - return classes.join(" "); + return classes.filter(c => typeof c === "string").join(" "); } /** |