Make basic flow with add text work

This commit is contained in:
2018-04-09 07:49:50 +05:30
parent 1912d5d0d8
commit 02e200fd57
15 changed files with 191 additions and 72 deletions
+12 -3
View File
@@ -1,19 +1,28 @@
import * as React from 'react';
import './Sidebar.css';
import { UploadResourcesInput } from '../UploadResourcesInput';
import { AddToCanvasInput } from '../AddToCanvasInput';
import { CanvasTextNode } from '../../Helpers';
interface SidebarProps {
addTextNode(nodeId: string, textNode: CanvasTextNode): void;
}
interface SidebarState {
}
export class Sidebar extends React.Component<SidebarProps, SidebarState> {
constructor(props: SidebarProps) {
super(props);
}
render() {
return (
<div className="sidebar">
<UploadResourcesInput />
<AddToCanvasInput addTextNode={this.props.addTextNode} />
</div>
);
}
}