diff options
author | bobzel <zzzman@gmail.com> | 2022-06-21 21:51:28 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-06-21 21:51:28 -0400 |
commit | 8a2d35bd9bf9d9871c1aa12332d11a99706b4a73 (patch) | |
tree | 0d5c7b4a29a58264d41ee45cf4bc7bcc31a10c8c /src | |
parent | 669d20040a727cf0599126eccffb175643d4fa09 (diff) |
fixed rendering error with DataViz
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/nodes/DataViz.tsx | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/src/client/views/nodes/DataViz.tsx b/src/client/views/nodes/DataViz.tsx index a3ffade70..d9541dba0 100644 --- a/src/client/views/nodes/DataViz.tsx +++ b/src/client/views/nodes/DataViz.tsx @@ -1,26 +1,21 @@ -import React from "react"; +import { observer } from "mobx-react"; +import * as React from "react"; import { ViewBoxBaseComponent } from '../DocComponent'; import "./DataViz.scss"; import { FieldView, FieldViewProps } from "./FieldView"; +@observer export class DataVizBox extends ViewBoxBaseComponent<FieldViewProps>() { - constructor(props: any) { - super(props); - } - - - public static LayoutString(fieldKey: string) { - return FieldView.LayoutString(DataVizBox, fieldKey); - } + public static LayoutString(fieldKey: string) { return FieldView.LayoutString(DataVizBox, fieldKey); } render() { return ( - <div className="dataViz"> - <div> - Hi + <div > + <div> + Hi + </div> </div> - </div> ); } }
\ No newline at end of file |