From b5b5dea3a130e9c403c34619d54de3248cf8f5c0 Mon Sep 17 00:00:00 2001 From: Norman Fomferra Date: Fri, 22 Nov 2024 15:30:53 +0100 Subject: [PATCH] Fixes after sync with main --- chartlets.js/src/lib/components/Typography.tsx | 4 ++-- chartlets.js/src/lib/types/state/component.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/chartlets.js/src/lib/components/Typography.tsx b/chartlets.js/src/lib/components/Typography.tsx index 9276b8c..8056e97 100644 --- a/chartlets.js/src/lib/components/Typography.tsx +++ b/chartlets.js/src/lib/components/Typography.tsx @@ -23,7 +23,7 @@ export function Typography({ gutterBottom, noWrap, variant, - children: components, + children: nodes, onChange, }: TypographyProps) { return ( @@ -35,7 +35,7 @@ export function Typography({ noWrap={noWrap} variant={variant} > - + ); } diff --git a/chartlets.js/src/lib/types/state/component.ts b/chartlets.js/src/lib/types/state/component.ts index 2e21355..85b2046 100644 --- a/chartlets.js/src/lib/types/state/component.ts +++ b/chartlets.js/src/lib/types/state/component.ts @@ -20,7 +20,7 @@ export type ComponentNode = export interface ComponentState { // TODO: Rename to tag, so we can also have // (Html)ElementState along with ComponentState - type: ComponentType; + type: string; children?: ComponentNode[]; // common HTML attributes id?: string;