From fe9cec0787fcefa2d16f7c155ffdf46d60f0fe06 Mon Sep 17 00:00:00 2001 From: Alexander Skvortsov Date: Sun, 12 Dec 2021 15:43:37 -0500 Subject: [PATCH] Allow any Mithril Children where appropriate --- js/src/admin/components/AdminPage.tsx | 4 ++-- js/src/admin/components/UserListPage.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/src/admin/components/AdminPage.tsx b/js/src/admin/components/AdminPage.tsx index 981a246cc..8a3b4bc1f 100644 --- a/js/src/admin/components/AdminPage.tsx +++ b/js/src/admin/components/AdminPage.tsx @@ -13,8 +13,8 @@ import generateElementId from '../utils/generateElementId'; import ColorPreviewInput from '../../common/components/ColorPreviewInput'; export interface AdminHeaderOptions { - title: string; - description: string; + title: Mithril.Children; + description: Mithril.Children; icon: string; /** * Will be used as the class for the AdminPage. diff --git a/js/src/admin/components/UserListPage.tsx b/js/src/admin/components/UserListPage.tsx index 675104aea..3502a24f9 100644 --- a/js/src/admin/components/UserListPage.tsx +++ b/js/src/admin/components/UserListPage.tsx @@ -21,7 +21,7 @@ type ColumnData = { /** * Column title */ - name: String; + name: Mithril.Children; /** * Component(s) to show for this column. */