mirror of
https://github.com/bendtherules/piktochart-create-editor.git
synced 2026-08-19 00:33:28 +00:00
Make basic flow with add text work
This commit is contained in:
@@ -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>
|
||||
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user