From e59dbb02175ec394a35c496201da71c90cd6a50a Mon Sep 17 00:00:00 2001
From: bobzel <zzzman@gmail.com>
Date: Tue, 5 Feb 2019 23:19:26 -0500
Subject: mostly working version, but confused about LayoutKeys needing to
 inquire value seemingly unecessarily

---
 src/views/nodes/TextNodeView.tsx | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 src/views/nodes/TextNodeView.tsx

(limited to 'src/views/nodes/TextNodeView.tsx')

diff --git a/src/views/nodes/TextNodeView.tsx b/src/views/nodes/TextNodeView.tsx
new file mode 100644
index 000000000..ab762df12
--- /dev/null
+++ b/src/views/nodes/TextNodeView.tsx
@@ -0,0 +1,28 @@
+import {observer} from "mobx-react";
+import {StaticTextNodeStore} from "../../stores/StaticTextNodeStore";
+import "./NodeView.scss";
+import {TopBar} from "./TopBar";
+import React = require("react");
+
+interface IProps {
+    store: StaticTextNodeStore;
+}
+
+@observer
+export class TextNodeView extends React.Component<IProps> {
+
+    render() {
+        let store = this.props.store;
+        return (
+            <div className="node text-node" style={{transform: store.Transform}}>
+                <TopBar store={store} />
+                <div className="scroll-box">
+                    <div className="content">
+                        <h3 className="title">{store.Title}</h3>
+                        <p className="paragraph">{store.Text}</p>
+                    </div>
+                </div>
+            </div>
+        );
+    }
+}
\ No newline at end of file
-- 
cgit v1.2.3-70-g09d2

