diff options
author | metamuffin <metamuffin@disroot.org> | 2022-09-09 14:08:20 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2022-09-09 14:08:20 +0200 |
commit | d101fb7f77822aac2a3d42ca1529028405cfad0d (patch) | |
tree | a1603a025a06ef1efa30828d4a669684095ef50b /client-web/source/helper.ts | |
parent | e8ba73eaef223513b143323df6cc7f495838a6ab (diff) | |
download | keks-meet-d101fb7f77822aac2a3d42ca1529028405cfad0d.tar keks-meet-d101fb7f77822aac2a3d42ca1529028405cfad0d.tar.bz2 keks-meet-d101fb7f77822aac2a3d42ca1529028405cfad0d.tar.zst |
refactor ui layout
Diffstat (limited to 'client-web/source/helper.ts')
-rw-r--r-- | client-web/source/helper.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client-web/source/helper.ts b/client-web/source/helper.ts index c277c0d..4f97ebb 100644 --- a/client-web/source/helper.ts +++ b/client-web/source/helper.ts @@ -11,9 +11,9 @@ const elem_with_content = (s: string) => (c: string) => { e.textContent = c return e } -const elem_with_children = (s: string) => (opts: { classes?: string[] }, ...cs: (HTMLElement | string)[]) => { +const elem_with_children = (s: string) => (opts: { class?: string[] }, ...cs: (HTMLElement | string)[]) => { const e = elem(s) - if (opts.classes) e.classList.add(...opts.classes) + if (opts.class) e.classList.add(...opts.class) for (const c of cs) { e.append(c) } |